Truste135
|
  |
| Joined: 26 Oct 2010 |
| Total Posts: 741 |
|
|
| 19 Nov 2013 09:55 AM |
All this time I was wondering how to make my own simple mapchanger, and tought of a solution.
function msg(msg) text = msg msg1 = Instance.new("Message", Workspace) msg1.Text = text wait(1.5) msg1:Destroy() end
while true do local lobbyTime = 60 wait(lobbyTime) local mapTime = 300 msg("Loading Map: testmap1 by Truste135") game.ServerStorage.map1:Clone().Parent = game.Workspace for i, player in ipairs(game.Players:GetPlayers()) do if player.Character then local hum = player.Character:FindFirstChild('Humanoid') if hum then hum.Health = 0 end end end game.Workspace.Lobby:Clone().Parent = game.ServerStorage game.Workspace.Lobby:Remove() wait(mapTime) msg("Time ran out!") for i, player in ipairs(game.Players:GetPlayers()) do if player.Character then local hum = player.Character:FindFirstChild('Humanoid') if hum then hum.Health = 0 end end end game.Workspace.map1:Remove() game.ServerStorage.Lobby:Clone().Parent = game.Workspace end
|
|
|
| Report Abuse |
|
|
| |
|
Truste135
|
  |
| Joined: 26 Oct 2010 |
| Total Posts: 741 |
|
|
| 19 Nov 2013 10:08 AM |
| my english is really bad :s |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 19 Nov 2013 10:09 AM |
| As if none of us here couldn't make one. |
|
|
| Report Abuse |
|
|
Truste135
|
  |
| Joined: 26 Oct 2010 |
| Total Posts: 741 |
|
|
| 19 Nov 2013 10:12 AM |
| im really amateur at scripting :s |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 10:13 AM |
| The point we're trying to make is that this doesn't belong here. |
|
|
| Report Abuse |
|
|
Truste135
|
  |
| Joined: 26 Oct 2010 |
| Total Posts: 741 |
|
| |
|
|
| 19 Nov 2013 10:16 AM |
It's okay.
As long as you leave before the mean people come and ruin your future, you'll be fine :)
(hehe, you're too late waffle) |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 01:58 PM |
Not bad. Try to not use :Remove() as it is deprecated. Also, you can just parent the maps instead of cloning and destroying them.
-Believe and you will achieve- |
|
|
| Report Abuse |
|
|