Roblox - How to Stop/Disable Player Movement

Roblox - How to Stop/Disable Player Movement

The Letus Garden

2 года назад

51,097 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@meatlyseditor
@meatlyseditor - 07.01.2024 13:42

man your a lifesaver 👍

Ответить
@DivineEditz_bfb
@DivineEditz_bfb - 04.01.2024 14:45

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

Ответить
@PumpyBoBo
@PumpyBoBo - 03.01.2024 00:40

--put this in SSS
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char:WaitForChild("Humanoid").WalkSpeed = 0
end)
end)

Ответить
@MiguelXF_
@MiguelXF_ - 03.12.2023 02:32

Or use this simple version:

require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls():Disable()

Ответить
@chungkim7351
@chungkim7351 - 25.11.2023 04:08

how do you make the player not turn? like disabling turning directions

Ответить
@realblight7925
@realblight7925 - 01.11.2023 15:16

Can you make a disable player controls when a part is touched in your next video?
That'll be great.

Ответить
@TheKingOfE
@TheKingOfE - 05.10.2023 09:17

Tysm my man!
+1 like

Ответить
@Schoolplanetwalker
@Schoolplanetwalker - 01.10.2023 02:07

disable walkspeed and jumpPower left the chat

Ответить
@ccsupa9608
@ccsupa9608 - 27.08.2023 14:13

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)

Ответить
@jmanab380
@jmanab380 - 09.08.2023 23:08

How do I make it so movement enables again when a certain block is touched?

Ответить
@VirtuousNb
@VirtuousNb - 30.07.2023 18:30

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()

Ответить
@kittenkutie
@kittenkutie - 29.07.2023 02:19

it didn’t work

Ответить
@briannazulias
@briannazulias - 23.07.2023 02:03

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

Ответить
@kez092
@kez092 - 15.07.2023 01:09

hello! is there a way to disable moving until a button is pressed?

Ответить
@haydenalmeida
@haydenalmeida - 01.07.2023 06:21

Thank you so much!

Ответить
@Harleeter
@Harleeter - 27.06.2023 00:23

instead of doing the script, go to setting and click game settings, then set both walk speed and jump power to 0.

Ответить
@C_ndyCadet
@C_ndyCadet - 24.05.2023 15:04

Dude this didn't work at all-

Ответить
@OofItsHonor
@OofItsHonor - 15.05.2023 02:21

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.

Ответить
@ModMaan
@ModMaan - 07.05.2023 21:21

how do you make it where you disable moving forward and backward forever

Ответить
@famousreact
@famousreact - 24.04.2023 20:15

a good people can make same but when a part touched stop player movment
plz send script here

Ответить
@chrisdeagnoli980
@chrisdeagnoli980 - 15.04.2023 01:29

wellit happens becouse of stupid guis

Ответить
@endergame8267
@endergame8267 - 09.04.2023 20:45

it work guys

Ответить
@maxarnold1
@maxarnold1 - 17.03.2023 00:46

god bless you 🙏 I’ve been looking for something like this for my menu FOREVER

Ответить
@GFagrache
@GFagrache - 08.02.2023 17:42

it doesnt work

Ответить
@garciabojorquezsalvador8435
@garciabojorquezsalvador8435 - 11.01.2023 03:46

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()

Ответить
@matiasmonzone.t.n2661
@matiasmonzone.t.n2661 - 01.01.2023 02:04

genial!!!

Ответить
@nualasagoofyahhcat
@nualasagoofyahhcat - 28.09.2022 04:35

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

Ответить
@Jabiyt_90
@Jabiyt_90 - 17.09.2022 16:06

It didnt worked and i saw like 9 tutorials and my script only dissapears

Ответить
@RiddledSkyblock
@RiddledSkyblock - 10.09.2022 12:40

is there also a way to for example only stop 1 type like Click To Move

Ответить
@kirozuna8173
@kirozuna8173 - 07.09.2022 13:33

Could someone send me the code in case I did an error within the scripting? Or is it in the assets?

Ответить
@Hi-yr4zd
@Hi-yr4zd - 04.09.2022 11:31

Can you tell us how to code character strafing? I would love it!

Ответить
@RubyColoredDiamond
@RubyColoredDiamond - 22.08.2022 22:58

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

Ответить
@decayedargon6765
@decayedargon6765 - 22.08.2022 06:07

Amazing! What syntax theme do you use btw? It looks amazing.

Ответить
@ultratheofficial
@ultratheofficial - 20.08.2022 20:41

Thx I do powers script and it’s very helpfull

Ответить
@x1x1x1gamer
@x1x1x1gamer - 16.08.2022 04:46

didnt work

Ответить
@Cookiebawn
@Cookiebawn - 12.08.2022 16:12

This didnt work for mee

Ответить
@NoNoMatt
@NoNoMatt - 02.08.2022 15:09

I need something that makes me move

Ответить
@rivernexus
@rivernexus - 30.07.2022 00:49

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

Ответить
@bludsrblx
@bludsrblx - 17.07.2022 11:55

can u make temporary jump disable?

Ответить
@heavenbound2030
@heavenbound2030 - 28.06.2022 03:21

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.

Ответить
@prakh1250
@prakh1250 - 08.06.2022 22:33

underrated asf

Ответить
@chillzfred839
@chillzfred839 - 12.05.2022 18:14

Hello! This worked a treat however people on laptop are able to bypass it. Anyway to prevent this?

Ответить
@flampu430
@flampu430 - 19.04.2022 05:57

amazingly explained

Ответить
@danielkolesar8353
@danielkolesar8353 - 09.04.2022 12:12

Doesn't work

Ответить
@flip5xide
@flip5xide - 17.03.2022 14:32

Yoo, its been a long time.

Ответить
@DLRGR202O
@DLRGR202O - 16.03.2022 22:14

Next: An actual handcuff system. I REALLY need that for my game!

Ответить
@guy56890
@guy56890 - 16.03.2022 21:58

Next: How to make a building tool.

Ответить
@DLRGR202O
@DLRGR202O - 16.03.2022 21:40

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-

Ответить