daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Nov 15th, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Vehicle Simulator Moneyscript by Butters @ V3RM
  2. -- good to use with LucasVanDrill's Vehicle Simulator Gui (SuperSpeed) https://pastebin.com/MiVvdVyQ
  3. -- n is default key, change if you'd like
  4. -- code is ####, I know
  5. timer = 0.9 -- Interval per each teleport
  6. Coords = Vector3.new(-1755, 40.785, 3200) -- Change to where ever you want to TP
  7. mKey = "n" -- What key to press
  8.  
  9.  
  10. -- Ignore the code if you dont want to change something
  11.  
  12. Vehicle = "A"
  13.  
  14. local player = game.Players.LocalPlayer
  15.  
  16. local mouse = player:GetMouse()
  17.  
  18. keypressed = false
  19.  
  20. function getcar()
  21. local children = workspace.Vehicles:GetChildren()
  22. for i = 1, #children do
  23.  
  24. if i == 1 then -- skip first children cause its not a car
  25.  
  26. else
  27.  
  28. if children[i].owner.Value == game.Players.LocalPlayer.Character.Name  then
  29.  
  30.  
  31. Vehicle = children[i]
  32. end
  33. end
  34. end
  35. end
  36. mouse.KeyDown:connect(function(key)
  37. if key == mKey then
  38. if(keypressed == true) then
  39. keypressed = false
  40. else
  41. keypressed = true
  42. getcar()
  43.  
  44. while(keypressed == true) do
  45. wait(timer)
  46. Vehicle:SetPrimaryPartCFrame(CFrame.new(Coords))
  47.  
  48.  
  49. end
  50. end
  51. end
  52. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top