of     1   

slipknot956
#185486159Thursday, March 17, 2016 12:33 AM GMT

how would one repeat this? while true do wait(1) game.Lighting.AdSpace:clone().Parent = game.Workspace wait(60) local msg = Instance.new("Hint") msg.Parent = game.Workspace msg.Text = ("Changing Map...") wait(4) msg:remove() game.Workspace.AdSpace:remove() wait(1) game.Lighting.TinyBasalt:clone().Parent = game.Workspace wait(60) local msg = Instance.new("Hint") msg.Parent = game.Workspace msg.Text = ("Changing Map...") wait(4) msg:remove() game.Workspace.TinyBasalt:remove() wait(1) game.Lighting.spawnstrip:clone().Parent = game.Workspace wait(60) local msg = Instance.new("Hint") msg.Parent = game.Workspace msg.Text = ("Changing Map...") wait(4) msg:remove() game.Workspace.spawnstrip:remove() wait(1) game.Lighting.SST:clone().Parent = game.Workspace wait(60) local msg = Instance.new("Hint") msg.Parent = game.Workspace msg.Text = ("Changing Map...") wait(4) msg:remove() game.Workspace.SST:remove() end instead of constantly pasting it over and over how do I repeat it? https://www.youtube.com/watch?v=aPHunCEDlVI
EPICJAKEISCOOL
#185486194Thursday, March 17, 2016 12:33 AM GMT

lol you made a funny
IPsec
#185487838Thursday, March 17, 2016 12:54 AM GMT

When you find yourself doing this, you should try making a function. They are very useful for this kind of thing. In this case, you could try: --! Note: This is untested. ! local CurrentMap = nil --Nil, meaning nothing: no current map yet local NewMap = function(NewMapModel) --Note: NewMapModel is a value representing what you pass to the function when its ran. See below. if CurrentMap~=nil then --If theres a CurrentMap local msg = Instance.new("Hint") msg.Parent = game.Workspace msg.Text = "Changing Map..." --Note: You don't need parenthesis here wait(4) msg:Destroy() --Note: remove() is deprecated (no longer used), Destroy() is used now CurrentMap:Destroy() --Destroy it end wait(1) CurrentMap = NewMapModel:Clone() CurrentMap.Parent = game.Workspace end while true do --The way you run a function is by typing its name followed by open and closing parenthesis. We will pass one argument inside of these parenthesis, which will become NewMapModel inside of the function, and the code inside of the function will be ran each time. NewMap(game.Lighting.AdSpace) --Here NewMapModel = game.Lighting.AdSpace wait(60) NewMap(game.Lighting.TinyBasalt) --Here NewMapModel = game.Lighting.TinyBasalt wait(60) NewMap(game.Lighting.spawnstrip) --Etc. wait(60) NewMap(game.Lighting.SST) wait(60) end
EPICJAKEISCOOL
#185488069Thursday, March 17, 2016 12:56 AM GMT

oh, so that's what you were asking I thought you just wanted to have it constantly running over and over, as you said "how do I repeat it" Well, you want to put that script into a function, like function runThis() and then do this in a script: runThis() and It will automatically run the code in that function.
slipknot956
#185488601Thursday, March 17, 2016 1:03 AM GMT

thanks c: https://www.youtube.com/watch?v=aPHunCEDlVI
slipknot956
#185605129Saturday, March 19, 2016 12:00 AM GMT

Thanks to you guys, my friend and I have been making this! http://www.roblox.com/games/383000303/2D-Swordfight slippy got a siggy

    of     1