I’m trying to make it so when the loading screen is doing its thing the player can’t move. I tried to look it up on youtube but I didn’t find anything. I don’t want them moving while it’s loading so they don’t end up walking somewhere else, away from spawn.
(Forgot to add that I am a complete noob when it comes to scripting.)
Here is the script.
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local GUI = script.LoadingScreen:Clone()
GUI.Parent = PlayerGui
This is the best solution for disabling PlayerActions, using ContextActionService.
Post by TheGamer101:
This is quite simple, the only issue are exploiters, which can change their character’s position through script. There are different ways to stop them, ones less efficient than others, but you could probably make a barrier around the player while they are loading, which teleports them back to the original position when touched.
This is almost a bit extreme, but really depends on how necessary it is for player to stay on one spot while loading according to your game. Why this might not be worth your time? Because while a player is loading, they hardly get a chance to execute exploits successfuly, as objects are not yet loaded.