reflicted
|
  |
| Joined: 07 Nov 2012 |
| Total Posts: 265 |
|
|
| 18 Nov 2012 03:37 PM |
So my map changer script has no errors, but will not work. It will not delete the message, and will not tp the players. It says Working and Tped in teh output though. :/
Script:
local mapspro = game.Lighting:GetChildren(); --[[ Thank you for using my map changer script. Currently it is in beta stage. Find any bugs or glitches? PM me. Thanks! NOTE: Do not touch anything unless it says to and you know what you are doing.
REFLICTED INC]] local mapspro = game.Lighting:GetChildren() while true do wait(3) selectedMap = mapspro[math.random(#mapspro)]:clone(); selectedMap:MakeJoints(); selectedMap.Parent=workspace; if selectedMap.Name == "map" then -- Set to one of the maps name. local msg = Instance.new("Message",game.Workspace) msg.Text = "Map Chosen: map" -- Change to the text you want the screen to say. game:GetService("Debris"):AddItem(game.Workspace.Message,2) -- Set the '4' to the time you want the screen to show. plyrs = game.Players:GetPlayers() for _, v in pairs(game.Players:GetPlayers()) do print 'Working' wait(0.5) plyrs.Position = Vector3.new(12,12,12 * 5) print 'Tped Plyrs' -- Position they teleport to, set the 12,12,12 to the position of the game/map starting point. end end end
~ This is a signature :P ~ |
|
|
| Report Abuse |
|
|
reflicted
|
  |
| Joined: 07 Nov 2012 |
| Total Posts: 265 |
|
|
| 18 Nov 2012 03:39 PM |
Bump broseph
~ This is a signature :P ~ |
|
|
| Report Abuse |
|
|
reflicted
|
  |
| Joined: 07 Nov 2012 |
| Total Posts: 265 |
|
|
| 18 Nov 2012 03:41 PM |
-.- Please bump
~ This is a signature :P ~ |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2012 03:54 PM |
Did u PM the guy?
To debug yourself put prints everywhere...
local mapspro = game.Lighting:GetChildren(); --[[ Thank you for using my map changer script. Currently it is in beta stage. Find any bugs or glitches? PM me. Thanks! NOTE: Do not touch anything unless it says to and you know what you are doing.
REFLICTED INC]] local mapspro = game.Lighting:GetChildren() while true do wait(3) selectedMap = mapspro[math.random(#mapspro)]:clone(); selectedMap:MakeJoints(); selectedMap.Parent=workspace; if selectedMap.Name == "map" then -- Set to one of the maps name. local msg = Instance.new("Message",game.Workspace) msg.Text = "Map Chosen: map" -- Change to the text you want the screen to say. game:GetService("Debris"):AddItem(game.Workspace.Message,2) -- Set the '4' to the time you want the screen to show. plyrs = game.Players:GetPlayers()
print (plyrs)
for _, v in pairs(game.Players:GetPlayers()) do
print 'Working, ' wait(0.5) plyrs.Position = Vector3.new(12,12,12 * 5) -- isn't plyrs a table? Don't u want v or something? One of the players in the table.
print ("Tped Plyrs ", plyrs.Position, plyrs) -- Position they teleport to, set the 12,12,12 to the position of the game/map starting point. end end end
|
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 18 Nov 2012 03:54 PM |
plyrs = game.Players:GetPlayers() for _, v in pairs(game.Players:GetPlayers()) do print 'Working' wait(0.5) plyrs.Position = Vector3.new(12,12,12 * 5)
-----------------------------------------
plyrs = game.Players:GetPlayers() for _, v in pairs(game.Players:GetPlayers()) do print 'Working' wait(0.5) v.Character.Torso.Position = Vector3.new(12,12,12 * 5) |
|
|
| Report Abuse |
|
|
reflicted
|
  |
| Joined: 07 Nov 2012 |
| Total Posts: 265 |
|
|
| 18 Nov 2012 03:55 PM |
| @BJ I created the script -.- I cant PM myself I made this script for the public -.- >.> |
|
|
| Report Abuse |
|
|