Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function changecolor(colorcar)
- plr = game:GetService("Players")
- value = colorcar
- for i,v in pairs(workspace.Vehicles:GetChildren()) do
- for k,d in pairs (v:GetChildren()) do
- if v ~= nil then
- if v:FindFirstChild("Seat") then
- if v.Seat:FindFirstChild("PlayerName") then
- if v.Seat.PlayerName.Value == plr.LocalPlayer.Name then
- for a,b in pairs (d:GetChildren()) do
- if b.Name == "Body" then
- b.Color = value
- end
- end
- end
- end
- end
- end
- end
- end
- end
- while wait(1) do
- wait(0.5)
- changecolor(Color3.fromRGB(255,119,0))
- wait(0.5)
- changecolor(Color3.fromRGB(255,0,0))
- wait(0.5)
- changecolor(Color3.fromRGB(255,255,0))
- wait(0.5)
- changecolor(Color3.fromRGB(98,37,209))
- wait(0.5)
- changecolor(Color3.fromRGB(0,255,0))
- wait(0.5)
- changecolor(Color3.fromRGB(0,255,255))
- wait(0.5)
- changecolor(Color3.fromRGB(255,176,0))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement