ok so I'm trying to have a command that when you send it, it inserts a script into everyone
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
player.Chatted:Connect(function(msg)
if string.sub(msg, 0, 1) == "/" then
if string.sub(msg, 2) == "command" then
for i, plr in pairs(game.Players:GetPlayers()) do
if char:FindFirstChild("TrollScript") then
print("already in action")
else
game.ServerStorage.TrollScript:Clone(char).Name = "TrollScript"
print("Added Script")
end
end
end
end
end)
end)
end)
the issue I have is that it prints that it added the script, but if I look inside my character, there's no local script that I'm inserting.
if anyone knows what's wrong, please reply the help would be appreciated.

3 comments
Clone() has 1 parameter, and its the parent, unless they removed it recently
No, it doesn't. Look something up before you state something randomly.
I looked, and I was in a beta feature enabled world when I was making something with a lot of cloning at first, so maybe it was a beta feature? because I used it that way for ages