My code so far for the gui:
local Screen = script.Parent.Screen
local ActivationButton = script.Parent.Parent.Screen["Play "]
local ExitButton = script.Parent.Screen.Exit
local Player = game.Players.LocalPlayer
ActivationButton.Activated:Connect(function()
Screen.Visible = true
end)
ExitButton.Activated:Connect(function()
Player.CameraMode = Enum.CameraMode.LockFirstPerson
Screen.Visible = false
end)
I want to add a piece of code that makes the player unable to move until they have closed the Guiscreen but i'm not sure how to code it.

5 comments
Look into PlatformStand on the characters humanoid
you could also just anchor one of the characters body parts
Hey Jedi Y dont u answer with the answer tab? Y do u type In comments dont u want Rep?
just set
Character.WalkSpeedto 0, then when they click the button, you set it back to whatever it was onAnd the jump power to 0