I'm trying to get it where this script clones itself and the clone gets parent to workspace but it just wont do any of that
local object = game.ServerStorage["Team change on death"]
local function createScriptCopy()
local ScriptCopy = object:Clone()
game:GetService("Players").PlayerAdded:connect(function(Player)
Player.Chatted:connect(function(Message)
if Message == ":Zombies" then
ScriptCopy.parent = game.Workspace
end
end)
end)
end
while true do
createScriptCopy()
wait(9999999)
end
What am I doing wrong? ;-;

2 comments
However, I suggest you to not use that while loop if you're going to wait for '9999999' seconds anyway.
Ikr. lol.