✓ Accepted answer
You would need to have some kind of condition defined, and a separate script that copied the other script.
Let's say you have two scripts that are set up like this (just an example):
###Script #1
We'll say this is in ServerScriptService, and named 'Script1'. We'll also have it disabled.
while wait(5) do
script.Parent.Head.BrickColor = BrickColor.random()
end
###Script #2
In Workspace
game.Players.PlayerAdded:connect(function(Plr)
Plr.CharacterAdded:connect(function(Char)
local ScriptClone = game.ServerScriptService.Script1:clone()
ScriptClone.Parent = Char
ScriptClone.Disabled = true
end)
end)
Now, basically what this would do is, whenever a players character is loaded into the game script 1 gets copied from ServerScriptService and put into the character. From then on, the script changes the characters head to a random color every 5 seconds.
Basically, this is just an example of a way that you could do this. If you have any further problems/questions, please leave a comment below, and I'll see what I can do. Hope I helped :P
####-Dyler3