Video není dostupné.
Omlouváme se.
Roblox - How to Stop/Disable Player Movement
Vložit
- čas přidán 15. 03. 2022
- In this video, we will explain how to disable all player movement.
This is great for anyone who is making a handcuff system, or a system where you need to freeze players!
Get your assets: theletusgarden.com/videos/f/r...
Join our discord server: / discord
god bless you 🙏 I’ve been looking for something like this for my menu FOREVER
Thank you so much!
man your a lifesaver 👍
Tysm my man!
+1 like
thanks!
amazingly explained
Amazing! What syntax theme do you use btw? It looks amazing.
How can I disable just a few binds or just certain vector movements only? I would like to disable jumping, W, and S keys to prevent specific movement.
To disable jumping, you can go into starter player and on the characterjumpheight property set it to 0
how do i make it so that during the play button gui is pressed the character cant move at all@@sakuraangel7333
Hey there! (I think I'm first.) Nice to see you uploading again, I've learned many things from here. This was posted just a minute ago-
Not only am I the 100th like but this will help my showcase game (animation of the player with a cool background) so they can't move
genial!!!
is there also a way to for example only stop 1 type like Click To Move
Thx I do powers script and it’s very helpfull
W youtuber
it work guys
Can you tell us how to code character strafing? I would love it!
reply to me if you still need help
Robert Parr#9557
Yoo, its been a long time.
how do you make it where you disable moving forward and backward forever
Next: An actual handcuff system. I REALLY need that for my game!
hello! is there a way to disable moving until a button is pressed?
Next: How to make a building tool.
how do i freeze my character when playing a enumkeycode animation event so it wont move during that for my battles ground game
Script:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local PlayerModule = require(playerScripts:WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()
Controls:Disable()
Your welcome
massive g
@@louisd8748 LOL 15 minutes ago
I actualy Dont know how to thank you couse i am way to lazy to actualy go and make this code
If it doesn't work, it's because the "c" in one of the "controls" is a lowecase "c". While the other one is a capital "c". Change the one with a small "c" to fix it.
ily for this
Can you make a disable player controls when a part is touched in your next video?
That'll be great.
local PLayers = game:GetService("Players")
local player = PLayers.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local PlayerModule = require(playerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
wait(5)
Controls:Enable()
This needs much likes ,SHOULD BE PINNED ! , thanks , the video was give me a greater idea what to of but the script didn't work ,u save me a lot of heache!
this is a true hero
underrated asf
Great video! Keep it up!
Script: local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerscripts = player: WaitForChild("PlayerScripts")
local PlayerModule = require(playerscripts: WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()
controls:Disable()
You're a life saver! TYSM!!!
thxssss
you are him
bro saved more lives than every emergency surgeon on earth combined
Does this permanently disable movement? I hope so
It didnt worked and i saw like 9 tutorials and my script only dissapears
Does anyone know how to disable moving but not jumping? I have a click-to-walk script in my game and can still move. So I turned the character walk speed from 16 to 0 and it broke the script. but every movement disable video I see on CZcams disables all movement. I want to keep jumping
This does work, but there a game breaking issue that it causes, for me at least. After the player dies or respawns they literally cannot move. I'm not sure why this happening.
try disabling and reenabling movement after respawning
@@ghostreaperlord5944 how?
@@AmyIfe use code from the video but after character is added
i know this is late but it may be because you put the script in StarterPlayerScripts instead of StarterCharacterScripts.
I am having the same issue
Hello! This worked a treat however people on laptop are able to bypass it. Anyway to prevent this?
a good people can make same but when a part touched stop player movment
plz send script here
am i just cursed or am i doing something wrong this is the script i put
local Players = game:GetService("Players")
local players = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScript")
local PlayerModule = require(playerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
edit: oh i get it now i made mistakes let me fix those the ill come back
I need something that makes me move
How do I make it so movement enables again when a certain block is touched?
crete a remove event to fire the client when the part is touched, then when fired it enables in a local script
*disable walkspeed and jumpPower left the chat*
I'm trying to find how to freeze the player movement when it touches a part. Then, the player walks again after a sertian amount of time
u can use a event to check if the player touched that part and then use this way to freeze the player
is it possible to only disable jumping without using jump power?
jumpHeight
@@pulsive5963oh my god thank you
bro when i tried this it didn’t let me move
Could someone send me the code in case I did an error within the scripting? Or is it in the assets?
local player = game.Players.LocalPlayer
local plrmodule = require(player:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"))
local controls = plrmodule:GetControls()
controls:Disable()
didnt work
This didnt work for mee
how do you make the player not turn? like disabling turning directions
you can turn off autorotate in humanoid
@@stx_1 how
@@chungkim7351 put a script in startercharacterscripts thats
script.Parent:WaitForChild("Humanoid").AutoRotate = false
Hi, i did this and it don't work need help pls
Script:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local PlayerModule = require(playerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
can u make temporary jump disable?
(Disable jump script) wait(1) (enable jump script)
@@RandomDrawinglol that doesn't help man. what you should have done is
plr.Character.Humanoid.JumpPower = 0
wait(1)
plr.Character.Humanoid.JumpPower = 50
@@thepotatogod2260 exploiters can easily bypass walkspeed or jump power changes.
@@lordoffraud74 true, but roblox is finally implementing an anti cheat system in the future, so it would solve a lot of our problems such as above
instead of doing the script, go to setting and click game settings, then set both walk speed and jump power to 0.
thxsss
Your solution has interesting approach, ty for sharing.
just walk speed 0 and jump power 0 no ?
edit : i test and it's better with your script
--put this in SSS
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char:WaitForChild("Humanoid").WalkSpeed = 0
end)
end)
disables someone's walking when they join (I'm not hating, just showing another way to do it)
Doesn't work
It didn't work for me, I put it as shown:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerscripts = player: WaitForChild("PlayerScripts")
local PlayerModule = require(playerscripts: WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()
Controls:Disable()
any advice?
edit: "local" is showing in red, I haven't done any work with roblox studio in a while so I'm unsure what's wrong
it's because your control variable is lowercase but Controls:Disable() is uppercase, hope this helps!
actually I think it's this part, "require(playerscripts: WaitForChild("PlayerModule"))" the playerScripts has a lowercase s in the "playerscripts"
it should be local PlayerModule = require(playerScripts: WaitForChild("PlayerModule"))
Dont work.... >:(
it didn’t work
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local PlayerModule = require(playerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
it doesnt work
Probably studio updated
Dude this didn't work at all-
it only works when i open the script in game. if i dont open it i can move
It didn't work originally but I fixed it with this is the one word script edit:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local PlayerModule = require(playerScripts:WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()
controls:Disable(true)
Thanks king
L video
L listener
@@the_endisnear7578 L comment and replies (including me)
Or use this simple version:
require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls():Disable()