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: Works in test mode

Previous Thread :: Next Thread 
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 01:11 PM
Not in server
for _,p in pairs (game.Players:GetPlayers()) do
p.PlayerGui.ScreenGui.Frame.Visible = false
p.PlayerGui.ScreenGui.Frame.Visible = true



end





Minigames = game.Lighting.Minigames:GetChildren()
wait(4)
ranGame = math.random(1, #Minigames)
gameChosen = Minigames[ranGame]
gameChosen:Clone()
gameChosen.Parent = game.Workspace
print(gameChosen)
wait(1)



for _,p in pairs (game.Players:GetPlayers()) do
p.PlayerGui.ScreenGui.Frame.TextLabel.Text = tostring(gameChosen)
wait(3)
p.PlayerGui.ScreenGui.Frame.TextLabel.Text = "Teleporting players"
wait(3)
p.PlayerGui.ScreenGui.Frame.Visible = false
p.Character.Torso.CFrame = CFrame.new(566.316, 122.88, -345.925)
end




LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
acidflip is not online. acidflip
Joined: 18 Jul 2012
Total Posts: 886
14 Jun 2015 02:12 PM
"Not in server"

LocalScripts only run in
- a player's backpack
- a player's character model
- a player's PlayerGui
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Jun 2015 02:14 PM
"LocalScripts only run in
- a player's backpack
- a player's character model
- a player's PlayerGui"

Not so.


They also run in PlayerScripts.
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 02:38 PM
Not in a local


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Jun 2015 02:39 PM
Probably it is because it takes time for players to join.
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 02:40 PM
So how should i use wait for child or just a generic wait(10) at the top?


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 03:03 PM
help?


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 03:15 PM
HELP


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 03:33 PM
PL-=X


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
Hyphonated is not online. Hyphonated
Joined: 22 Feb 2012
Total Posts: 175
14 Jun 2015 03:35 PM
if you're getting the player do

local plr

game.Players.PlayerAdded:connect(function(p)
plr = p
end)
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
14 Jun 2015 03:37 PM
How should i use that could you ammend my script please? D:


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
14 Jun 2015 03:46 PM
???


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
14 Jun 2015 03:51 PM
....


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
gergy008 is not online. gergy008
Joined: 16 Mar 2008
Total Posts: 7039
14 Jun 2015 03:56 PM
Pretty sure you cannot look in players backpacks/GUIs from the server.


Play now! ~ http://www.roblox.com/games/2047642/Build-A-Fortune
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
14 Jun 2015 03:58 PM

game.Players.PlayerAdded:connect(function(p)

p.PlayerGui.ScreenGui.Frame.Visible = false
p.PlayerGui.ScreenGui.Frame.Visible = true



end)








Minigames = game.Lighting.Minigames:GetChildren()
wait(4)
ranGame = math.random(1, #Minigames)
gameChosen = Minigames[ranGame]
gameChosen:Clone()
gameChosen.Parent = game.Workspace
print(gameChosen)
wait(1)



game.Players.PlayerAdded:connect(function(p)


p.PlayerGui.ScreenGui.Frame.TextLabel.Text = tostring(gameChosen)
wait(3)
p.PlayerGui.ScreenGui.Frame.TextLabel.Text = "Teleporting players"
wait(3)
p.PlayerGui.ScreenGui.Frame.Visible = false
TP = gameChosen.TP:GetChildren()
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(TP[i].Position + Vector3.new(0,1,0))
end



end)


still not working


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
15 Jun 2015 10:51 AM
???



LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
MrEpic534 is not online. MrEpic534
Joined: 12 May 2012
Total Posts: 1349
20 Jun 2015 09:46 AM
D:


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
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