Here is what im wanting to Put into a script through another script.
button.Click:connect(function() while wait(.7) do for _, v in pairs (game.Players:GetChildren()) do for _, p in pairs (v.Character:GetChildren()) do if p:IsA("Part") and p.Name ~= "HumanoidRootPart" then p.BrickColor = BrickColor.Random() for _, x in pairs(v.Character:GetChildren()) do if x:IsA("Shirt") and x.Name == "Shirt" then x:Destroy() for _, l in pairs(v.Character:GetChildren()) do if l:IsA("Pants") and l.Name == "Pants" then l:Destroy() end end end end end end end end end)
Well, just make the script with the code in it and disable the script. Then, the script your showing right now, edit it and add this: local newScripttobecloned = locationofthescript.thenewscriptyoujustcreated:clone() newScripttobecloned.Parent = wheretoputthescript newScripttobecloned.Disabled = false