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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Jun 2015 02:39 PM |
| Probably it is because it takes time for players to join. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Jun 2015 03:46 PM |
???
LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881 |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 03:51 PM |
....
LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 15 Jun 2015 10:51 AM |
???
LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881 |
|
|
| Report Abuse |
|
|
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 |
|
|