Here is what im wanting to Put into a script through another script.
01 | button.Click:connect( function () |
02 | while wait(. 7 ) do |
03 | for _, v in pairs (game.Players:GetChildren()) do |
04 | for _, p in pairs (v.Character:GetChildren()) do |
05 | if p:IsA( "Part" ) and p.Name ~ = "HumanoidRootPart" then |
06 | p.BrickColor = BrickColor.Random() |
07 | for _, x in pairs (v.Character:GetChildren()) do |
08 |
09 |
10 | if x:IsA( "Shirt" ) and x.Name = = "Shirt" then |
11 | x:Destroy() |
12 |
13 | for _, l in pairs (v.Character:GetChildren()) do |
14 |
15 | if l:IsA( "Pants" ) and l.Name = = "Pants" then |
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