local f=game.Players.LocalPlayer local I=f.Character or f.CharactedAdded:wait()local Y=I:WaitForChild("\072\117\109\097\110\111\105\100")local Z=16 local y local V Y.Seated:Connect(function()if V then Y.WalkSpeed=y V=false for f,I in ipairs(I:GetChildren())do if I:IsA("\080\097\114\116")then I.CustomPhysicalProperties=PhysicalProperties.new(Enum.Material.Plastic)end end else y=Y.WalkSpeed Y.WalkSpeed=Z V=true end end)


local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharactedAdded:wait()
local Humanoid = Character:WaitForChild("Humanoid")
local SeatSpeed = 16
local SaveSpeed
local seated

Humanoid.Seated:Connect(function()
	if seated then
		Humanoid.WalkSpeed = SaveSpeed
		seated = false
		
		-- stop player from being slippery
		for i, part in ipairs(Character:GetChildren()) do
			if part:IsA("Part") then
				part.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Plastic)
			end
		end
		
	else
		SaveSpeed = Humanoid.WalkSpeed
		Humanoid.WalkSpeed = SeatSpeed
		seated = true
	end
end)
