UsernameRTX

Driving Simulator Infinite Nitro

Aug 20th, 2021
7,243
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local RunService = game:GetService("RunService")
  4.  
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. local src = ReplicatedStorage.src
  8.  
  9. local pcar = src.pcar
  10.  
  11. local CarTracker = require(pcar.CarTracker)
  12.  
  13. local Debounce = false
  14. local RBXScriptSignal = nil
  15.  
  16. RunService.RenderStepped:Connect(function(...)
  17.     if CarTracker.getCarFromDriver(LocalPlayer) then
  18.         if not Debounce then
  19.             Debounce = true
  20.             table.foreachi(getconnections(RunService.Stepped), function(_, Value, ...)
  21.                 if Value.Function and getfenv(Value.Function).script.Name == "CarClient" then
  22.                     RBXScriptSignal = RunService.RenderStepped:Connect(function(...)
  23.                         debug.setupvalue(Value.Function, 21, 3)
  24.                     end)
  25.                     return
  26.                 else
  27.                     return
  28.                 end
  29.             end)
  30.         end
  31.     else
  32.         if Debounce then
  33.             Debounce = false
  34.             RBXScriptSignal:Disconnect()
  35.         end
  36.     end
  37. end)
RAW Paste Data