UsernameRTX

Vehicle Simulator Modify Suspension

May 9th, 2020 (edited)
204
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local ui = loadstring(game:GetObjects("rbxassetid://4133667265")[1].Source)("Library by wally")
  2. local w = ui:CreateWindow('Vehicle Simulator')
  3. local LocalPlayer = game.Players.LocalPlayer
  4. local MyCar
  5. function FindPlayersCar()
  6.     for _, v in pairs(workspace.Vehicles:GetChildren()) do
  7.         local ow = v:FindFirstChild("owner")
  8.         local own = ow and ow.Value
  9.         if own == LocalPlayer.Name then
  10.             MyCar = v
  11.             return v
  12.         end
  13.     end
  14. end
  15. local s = w:Slider("Suspension", {
  16.     min = 0;
  17.     max = 120;
  18.     flag = 's'
  19.  }, function(v)
  20.     MyCar = FindPlayersCar()
  21.     for _, A_1 in pairs(MyCar.Chassis.Suspension:GetChildren()) do
  22.         A_1.MaxLength = v;
  23.         A_1.MinLength = v;
  24.     end
  25. end)
RAW Paste Data