The guiscreen works but when I press the button to close the screen the player doesn't freeze in place.
local Char = Player.Character.Humanoid
if PlayButton.Activated:Connect(function()
Player.CameraMaxZoomDistance = 10
local function End()
Screen.Visible = false
end
Screen:TweenPosition(UDim2.new(0,0,1,0), "Out", "Quad", 0.5, false, End)
end)
then
Char.WalkSpeed = 0
end
any ideas?

3 comments
Why not anchor a player part instead ?
I tried doing this Char.HumanoidRootPart.Anchored = true instead of the char.walkspeed but it doesnt work either
Where are you defining what the player is?