task.wait()local R=game:GetService("\080\108\097\121\101\114\115")local K=R.LocalPlayer local A=K.Character.HumanoidRootPart local C=K.Character:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")local i=K:GetMouse()local s=script.Enabled local y=true local V={w=0,s=0;a=0;d=0}local O=2 local p=i.KeyDown:Connect(function(R)if R:lower()=="\119"then V.w=1 elseif R:lower()=="\115"then V.s=1 elseif R:lower()=="\097"then V.a=1 elseif R:lower()=="\100"then V.d=1 elseif R:lower()=="\113"then O=O+1 elseif R:lower()=="\101"then O=O-1 end end)local a=i.KeyUp:Connect(function(R)if R:lower()=="\119"then V.w=0 elseif R:lower()=="\115"then V.s=0 elseif R:lower()=="\097"then V.a=0 elseif R:lower()=="\100"then V.d=0 end end)A.Anchored=true C.PlatformStand=true local L=C.Changed:Connect(function()C.PlatformStand=true end)repeat if s==nil or s.Parent==nil or s.Value==false then y=false break end task.wait()A.CFrame=(CFrame.new(A.Position,workspace.CurrentCamera.CFrame.p)*CFrame.Angles(0,math.rad(180),0))*CFrame.new((V.d-V.a)*O,0,(V.s-V.w)*O)until not y or C.Parent==nil or A.Parent==nil or script.Parent==nil or not s or not s.Value or not s.Parent p:Disconnect()a:Disconnect()L:Disconnect()A.Anchored=false C.PlatformStand=false
task.wait()
local players = game:GetService("Players")
local localplayer = players.LocalPlayer
local torso = localplayer.Character.HumanoidRootPart 
local hum = localplayer.Character:FindFirstChildOfClass("Humanoid")
local mouse = localplayer:GetMouse()
local enabled = script.Enabled
local running = true
local dir = {w = 0, s = 0, a = 0, d = 0} 
local spd = 2 
	
local moos = mouse.KeyDown:Connect(function(key)
	if key:lower() == "w" then 
		dir.w = 1 
	elseif key:lower() == "s" then 
		dir.s = 1 
	elseif key:lower() == "a" then 
		dir.a = 1 
	elseif key:lower() == "d" then 
		dir.d = 1 
	elseif key:lower() == "q" then 
		spd = spd + 1 
	elseif key:lower() == "e" then 
		spd = spd - 1 
	end 
end) 

local moos1 = mouse.KeyUp:Connect(function(key)
	if key:lower() == "w" then 
		dir.w = 0 
	elseif key:lower() == "s" then 
		dir.s = 0 
	elseif key:lower() == "a" then 
		dir.a = 0 
	elseif key:lower() == "d" then 
		dir.d = 0 
	end 
end) 
					
torso.Anchored = true 
hum.PlatformStand = true 
local macka = hum.Changed:Connect(function() 
	hum.PlatformStand = true 
end) 

repeat 
	if enabled == nil or enabled.Parent == nil or enabled.Value == false then
		running = false
		break
	end
	task.wait()
	torso.CFrame = CFrame.new(torso.Position, workspace.CurrentCamera.CFrame.p) * CFrame.Angles(0,math.rad(180),0) * CFrame.new((dir.d-dir.a)*spd,0,(dir.s-dir.w)*spd) 
until not running or hum.Parent == nil or torso.Parent == nil or script.Parent == nil or not enabled or not enabled.Value or not enabled.Parent

moos:Disconnect()
moos1:Disconnect()
macka:Disconnect()
torso.Anchored = false
hum.PlatformStand = false
