Advertisement
Nova355killer

Press w tp to briefcase

Mar 17th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. mouse = game:service'Players'.LocalPlayer:GetMouse()
  2. mouse.KeyDown:Connect(function(key)
  3. if key == "w" then
  4. local lp = game:GetService("Players").LocalPlayer
  5. local char = lp.Character
  6. local pos = Instance.new("CFrameValue")
  7. if char then
  8. pos.Value = char.HumanoidRootPart.CFrame
  9. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,19,0)
  10. wait(.2)
  11. char.HumanoidRootPart.CFrame = pos.Value
  12. char.HumanoidRootPart.CFrame = workspace.Drop.Briefcase.CFrame
  13. end
  14. W = true
  15. end
  16. end)
  17. mouse.KeyUp:Connect(function(key)
  18. if key == "W" or key == "w" then
  19. W = false
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement