Advertisement
Yusuf1987

Emergency Hamburg Unbreakable car

Nov 22nd, 2024 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | Source Code | 0 0
  1. local Cars = workspace.Vehicles
  2. local Plr = game.Players.LocalPlayer
  3.  
  4. task.spawn(function()
  5.     while task.wait() do
  6.         if Cars[Plr.Name] then
  7.             Cars[Plr.Name]:SetAttribute("IsOn",true)
  8.             Cars[Plr.Name]:SetAttribute("CurrentHealth",1)
  9.             Cars[Plr.Name]:SetAttribute("CurrentFuel",1)
  10.             local Wheels = Cars[Plr.Name].Wheels
  11.             for _, v in ipairs(Wheels:GetDescendants()) do
  12.                 if v.Name == "Parts" then
  13.                     v.RimB.Transparency = 0
  14.                     v.RimW.Transparency = 0
  15.                     v.Tire.Transparency = 0
  16.                    
  17.                     local newPhysicalProperties = PhysicalProperties.new(0.65,1.4,1,1,1)
  18.                     v.Parent.CustomPhysicalProperties = newPhysicalProperties
  19.                 end
  20.             end
  21.         end
  22.     end
  23. end)
  24.  
  25. while task.wait() do
  26.     Plr = game.Players.LocalPlayer
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement