Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2.  
  3. mouse.KeyDown:connect(function(key)
  4.  
  5. if key == "m" then
  6.  
  7. for i, v in pairs(game.Workspace.Vehicles:GetChildren()) do
  8. if v:IsA("Model") then
  9. for a, b in pairs(v:GetChildren()) do
  10. if b.Name == "owner" then
  11. if b.Value == game.Players.LocalPlayer.Name then
  12. v.Name = "This One"
  13. end
  14. end
  15. end
  16. end
  17. end
  18.  
  19. car = game.Workspace.Vehicles["This One"]
  20. end
  21.  
  22.  
  23. if key == "p" then
  24. game.ReplicatedStorage.VehicleEvents.Nitro:FireServer(true, car.Chassis.FrontAxle.Front.NitroSound, car.Chassis.FrontAxle.Front.Nitro, -150250)
  25. end
  26.  
  27. if key == "l" then
  28. game.ReplicatedStorage.VehicleEvents.Nitro:FireServer(false, car.Chassis.FrontAxle.Front.NitroSound, car.Chassis.FrontAxle.Front.Nitro, -150250)
  29. end
  30.  
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement