Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer hum = plr.Character.HumanoidRootPart mouse = plr:GetMouse() mouse.KeyDown:connect(function(key) if key == "e" then if mouse.Target then hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z) end end end)
- plr = game.Players.LocalPlayerÂ
- hum = plr.Character.HumanoidRootPart
- mouse = plr:GetMouse()Â
- mouse.KeyDown:connect(function(key)Â
- if key == "e" thenÂ
- if mouse.Target thenÂ
- hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)Â
- endÂ
- endÂ
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement