Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Vehicles = workspace.Vehicles
- task.spawn(function()
- if Vehicles then
- while task.wait() do
- for i,CurrentCar in ipairs(Vehicles:GetChildren()) do
- if CurrentCar ~= nil then
- local Speed = CurrentCar:GetAttribute("MaxSpeed")
- CurrentCar:SetAttribute("CurrentMaxSpeed", Speed)
- if not CurrentCar:GetAttribute("MaxSpeedIncreased") then
- CurrentCar:SetAttribute("MaxSpeed", Speed + 50)
- CurrentCar:SetAttribute("MaxSpeedIncreased", true)
- end
- if CurrentCar.DriveSeat:FindFirstChild("Engine") then
- CurrentCar.DriveSeat.Engine.SoundId = "rbxassetid://1160914875"
- elseif CurrentCar.DriveSeat:FindFirstChild("TruckEngine") then
- CurrentCar.DriveSeat.TruckEngine.SoundId = "rbxassetid://1160914875"
- end
- if CurrentCar.DriveSeat:FindFirstChild("EngineOff") then
- CurrentCar.DriveSeat.EngineOff.SoundId = "rbxassetid://268260239"
- end
- if CurrentCar.DriveSeat:FindFirstChild("EngineOn") then
- CurrentCar.DriveSeat.EngineOn.SoundId = "rbxassetid://402899121"
- end
- CurrentCar:SetAttribute("MaxAccelerateForce", 1000)
- CurrentCar:SetAttribute("MaxBrakeForce", 1000)
- CurrentCar:SetAttribute("MinAccelerateForce", 350)
- CurrentCar:SetAttribute("MinBrakeForce", 750)
- CurrentCar:SetAttribute("ShowElectric", true)
- CurrentCar:SetAttribute("Type", "electric")
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement