|
| 26 Dec 2011 06:48 PM |
Okay well i made a war game with changing maps and a GUI to teleport to the map. For the GUI to work i need the map to spawn in the same place each time. 1 problem with that though, they spawn ontop of each other! Heres the script to see if you can find the probs (FYI i made it like a tutorial so i could give it to my friend)
print("Change Map Script Loaded") while true do wait(0) game.Lighting.feild1:clone().Parent = game.Workspace -- Put the maps in the lighting wait(300) -- You can edit this, this is how long you wan't the field to be on. This is currently on 5 Minutes. local msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("Changing field...") wait(4) -- How long you want the text to stay on your screen (editable) msg:remove() game.Workspace.feild1:remove() wait(0.1) -- How long you want to wait for it to go away (editable) (I wouldnt edit it though) game.Lighting.feild2:clone().Parent = game.Workspace wait(300) -- How long you want field2 to be up. msg.Parent = game.Workspace msg.Text = ("Changing field...") wait(4) -- How long you want the text to stay on your screen (editable) msg:remove() game.Workspace.feild2:remove() wait(0.1) --How long you want to wait for it to go away (editable) (I wouldnt edit it though) game.Lighting.feild3:clone().Parent = game.Workspace wait(300) -- How long you want field2 to be up. msg.Parent = game.Workspace msg.Text = ("Changing field...") wait(4) -- How long you want the text to stay on your screen (editable) msg:remove() game.Workspace.feild3:remove() wait(0.1) --How long you want to wait for it to go away (editable) (I wouldnt edit it though)
Thanks, JustinJoseph (DONT FLAME) |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 26 Dec 2011 06:51 PM |
| Put an "end" on the bottom. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2011 07:03 PM |
| Oops, there is, but i forgot to copy it. |
|
|
| Report Abuse |
|
|
| |
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 26 Dec 2011 07:47 PM |
You're using models right? Just move them around... That's what I do. Like so
game.Workspace.Field1:MoveTo(Whatever the coordinates are)
And you're done... |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2011 09:22 PM |
| Ohhh, ok! i think it fixed it nao! ty :D |
|
|
| Report Abuse |
|
|