Skip to content

Instantly share code, notes, and snippets.

@Windows81
Last active December 22, 2021 01:31
Show Gist options
  • Select an option

  • Save Windows81/f870d051ef4b925ddd22225b2c56084d to your computer and use it in GitHub Desktop.

Select an option

Save Windows81/f870d051ef4b925ddd22225b2c56084d to your computer and use it in GitHub Desktop.
Run this script in Driving Empire (on Rōblox) to add a rainbow effect to your Dart.
local h, c = 0, 0
if _G.ccol then _G.ccol:disconnect() end
_G.ccol = game:service 'RunService'.Heartbeat:connect(function(d)
c = c + d
h = h + d
if c > 1 / 4 then
c = c - 1 / 4
local C = Color3.fromHSV((h / 7) % 1, 1, 1)
game.ReplicatedStorage.Remotes.ChangeCarStuff:FireServer('Dart', 'color',
'1a', C)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment