Grandmaa

Vehicle Simulator Script Roblox 2021

Dec 20th, 2021
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. print("niggers")
  2. --[[
  3. Sub to niggas
  4.  
  5. --]]
  6.  
  7.  
  8.  
  9. --[[
  10. Settings
  11. --]]
  12.  
  13. timewait=0.1 -- TP time, wait "timewait" seconds and then TP.
  14. racestarttime=2 -- 2-7 is recommended. starts at 0.1 seconds.
  15.  
  16.  
  17.  
  18.  
  19. --[[
  20. Code
  21. --]]
  22.  
  23. db=false
  24. while wait() do
  25. while db == false do
  26. wait()
  27. local A_1 = 14
  28. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteEvents.Invite
  29. Event:FireServer(A_1)
  30. local A_1 = 14
  31. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteFunctions["join_mode"]
  32. Event:InvokeServer(A_1)
  33. local A_1 = 14
  34. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteEvents.Invite
  35. Event:FireServer(A_1)
  36. guis = game.Players.LocalPlayer.PlayerGui
  37. wait(timewait)
  38. for i,v in pairs(guis:GetChildren()) do
  39. if v.Name == "RaceGui" then
  40. gui=game.Players.localPlayer.PlayerGui.RaceGui
  41. db = true
  42. else
  43. wait()
  44. end
  45. end
  46. end
  47. while db == true do
  48. wait()
  49. if tonumber(gui.top_bar.time_info.Text) > racestarttime then
  50. function findVehicle()
  51. while not found do
  52. local vehicles = Workspace.Vehicles:getChildren()
  53. for i=1,#vehicles do
  54. if vehicles[i]:findFirstChild'owner' then
  55. if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then
  56. found = true
  57. vehicle = vehicles[i]
  58. elseif vehicles[i + 1] == nil and not found then
  59. end
  60. end
  61. end
  62. end
  63. vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
  64. end
  65. findVehicle()
  66. for i = 1,16 do
  67. local seat = game.Players.LocalPlayer.Character.Humanoid.SeatPart
  68. local vehicleModel = seat.Parent
  69. local plr = game:GetService("Players").LocalPlayer
  70. local char = plr.Character
  71. local tor = char:WaitForChild("HumanoidRootPart")
  72. wait(timewait)
  73. local nextstop="Checkpoint_"..i
  74. vehicle:SetPrimaryPartCFrame(game.Workspace.Camera:WaitForChild(nextstop).CFrame)
  75. game:GetService('VirtualUser'):SetKeyDown('w')
  76. game:GetService('VirtualUser'):SetKeyDown('w')
  77. game:GetService('VirtualUser'):SetKeyDown('w')
  78. wait()
  79. game:GetService('VirtualUser'):SetKeyDown('w')
  80. game:GetService('VirtualUser'):SetKeyDown('w')
  81. game:GetService('VirtualUser'):SetKeyDown('w')
  82. game:GetService('VirtualUser'):SetKeyDown('w')
  83. game:GetService('VirtualUser'):SetKeyDown('w')
  84. game:GetService('VirtualUser'):SetKeyDown('w')
  85. end
  86. db=false
  87. end
  88. end
  89. db=false
  90. end
Add Comment
Please, Sign In to add comment