Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game:service'Players'.LocalPlayer:GetMouse()
- mouse.KeyDown:Connect(function(key)
- if key == "w" then
- local lp = game:GetService("Players").LocalPlayer
- local char = lp.Character
- local pos = Instance.new("CFrameValue")
- if char then
- pos.Value = char.HumanoidRootPart.CFrame
- char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,19,0)
- wait(.2)
- char.HumanoidRootPart.CFrame = pos.Value
- char.HumanoidRootPart.CFrame = workspace.Drop.Briefcase.CFrame
- end
- W = true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- if key == "W" or key == "w" then
- W = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement