UsernameRTX

Vehicle Simulator Win Any Race

May 9th, 2020 (edited)
561
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local LocalPlayer = Players.LocalPlayer
  3. meta = getrawmetatable(game)
  4. nc = meta.__namecall
  5. make_writeable(meta)
  6.  
  7. meta.__namecall = newcclosure(function(rc, ...)
  8. args = {...}
  9. if (tostring(rc) == "lm" or tostring(rc) == "GAReportLogErrorsRemoteEvent") and getnamecallmethod() == "FireServer" then
  10. return
  11. end
  12.  
  13. return nc(rc, ...)
  14. end)
  15. local MyCar
  16. function FindPlayersCar()
  17.     for _, v in pairs(Workspace.Vehicles:GetChildren()) do
  18.         local ow = v:FindFirstChild("owner")
  19.         local own = ow and ow.Value
  20.         if own == LocalPlayer.Name then
  21.             MyCar = v
  22.             return v
  23.         end
  24.     end
  25. end
  26. for _, A_1 in pairs(game:GetService("Workspace").Camera:GetDescendants()) do
  27.     if A_1.Name == "Checkpoint" then
  28.         A_2 = A_1.Parent
  29.         MyCar = FindPlayersCar()
  30.         MyCar:SetPrimaryPartCFrame(A_2.CFrame)
  31.     end
  32. end
  33. local MyCar
  34. function FindPlayersCar()
  35.     for _, v in pairs(Workspace.Vehicles:GetChildren()) do
  36.         local ow = v:FindFirstChild("owner")
  37.         local own = ow and ow.Value
  38.         if own == LocalPlayer.Name then
  39.             MyCar = v
  40.             return v
  41.         end
  42.     end
  43. end
  44. for _, A_1 in pairs(game:GetService("Workspace").Camera:GetDescendants()) do
  45.     if A_1.Name == "Checkpoint" then
  46.         A_2 = A_1.Parent
  47.         MyCar = FindPlayersCar()
  48.         MyCar:SetPrimaryPartCFrame(A_2.CFrame)
  49.     end
  50. end
RAW Paste Data