View difference between Paste ID: sWUHDxja and LP5Mczu0
SHOW: | | - or go back to the newest paste.
1
plr = game.Players.LocalPlayer
2
hum = plr.Character.HumanoidRootPart
3
mouse = plr:GetMouse()
4
5
mouse.KeyDown:connect(function(key)
6-
if key == "e" then
6+
if key == "r" then
7
if mouse.Target then
8
hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
9
end
10
end
11
end)