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 » Scripting Helpers
Home Search
 

Help Again

Previous Thread :: Next Thread 
reflicted is not online. 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 is not online. reflicted
Joined: 07 Nov 2012
Total Posts: 265
18 Nov 2012 03:39 PM
Bump broseph

~ This is a signature :P ~
Report Abuse
reflicted is not online. reflicted
Joined: 07 Nov 2012
Total Posts: 265
18 Nov 2012 03:41 PM
-.- Please bump

~ This is a signature :P ~
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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