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

0

Why not anchor a player part instead ?

0

I tried doing this Char.HumanoidRootPart.Anchored = true instead of the char.walkspeed but it doesnt work either

0

Where are you defining what the player is?