generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: My simple mapchanger.

Previous Thread :: Next Thread 
Truste135 is not online. 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
SCP087Project is not online. SCP087Project
Joined: 29 Sep 2013
Total Posts: 198
19 Nov 2013 10:01 AM
You taught a solution?
Report Abuse
Truste135 is not online. Truste135
Joined: 26 Oct 2010
Total Posts: 741
19 Nov 2013 10:08 AM
my english is really bad :s
Report Abuse
RaidenJPN is not online. 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 is not online. Truste135
Joined: 26 Oct 2010
Total Posts: 741
19 Nov 2013 10:12 AM
im really amateur at scripting :s
Report Abuse
SCP087Project is not online. SCP087Project
Joined: 29 Sep 2013
Total Posts: 198
19 Nov 2013 10:13 AM
The point we're trying to make is that this doesn't belong here.
Report Abuse
Truste135 is not online. Truste135
Joined: 26 Oct 2010
Total Posts: 741
19 Nov 2013 10:14 AM
i had no idea :s
Report Abuse
SCP087Project is not online. SCP087Project
Joined: 29 Sep 2013
Total Posts: 198
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
juzzbyXfalcon is not online. juzzbyXfalcon
Joined: 02 Feb 2011
Total Posts: 1311
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image