local function l()Humanoid.AutoRotate=false if Humanoid.WalkSpeed~=0 then StoredValues={Humanoid.WalkSpeed,Humanoid.JumpPower}Humanoid.WalkSpeed=0 Humanoid.JumpPower=0 end Humanoid:UnequipTools()PreventTools=character.ChildAdded:connect(function(l)wait()if l:IsA("\084\111\111\108")and l.Parent==character then Humanoid:UnequipTools()end end)DisableJump=Humanoid.Changed:connect(function(l)if l=="\074\117\109\112"then Humanoid.Jump=false end end)Humanoid.PlatformStand=true end local function y()Humanoid.AutoRotate=true Humanoid.WalkSpeed=StoredValues[1]Humanoid.JumpPower=StoredValues[2]for l,y in pairs({DisableJump;PreventTools})do if y then y:disconnect()end end Humanoid.PlatformStand=false end
--[[local iceMesh = Instance.new("SpecialMesh", icePart)
iceMesh.Name = "IceMesh"
iceMesh.MeshType = "FileMesh"
iceMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
iceMesh.Scale = Vector3.new(0.675, 0.675, 0.675)]]

local function DisableMove()
	Humanoid.AutoRotate = false
	if Humanoid.WalkSpeed ~= 0 then
		StoredValues = { Humanoid.WalkSpeed, Humanoid.JumpPower }
		Humanoid.WalkSpeed = 0
		Humanoid.JumpPower = 0
	end
	Humanoid:UnequipTools()
	PreventTools = character.ChildAdded:connect(function(Child)
		wait()
		if Child:IsA("Tool") and Child.Parent == character then
			Humanoid:UnequipTools()
		end
	end)
	DisableJump = Humanoid.Changed:connect(function(Property)
		if Property == "Jump" then
			Humanoid.Jump = false
		end
	end)
	Humanoid.PlatformStand = true
	--Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
end

local function EnableMove()
	Humanoid.AutoRotate = true
	Humanoid.WalkSpeed = StoredValues[1]
	Humanoid.JumpPower = StoredValues[2]
	for i, v in pairs({ DisableJump, PreventTools }) do
		if v then
			v:disconnect()
		end
	end
	Humanoid.PlatformStand = false
	--Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
end
