|
| 08 Aug 2013 08:13 PM |
I want them to change text, but I don't see them do that until I reset
wait(6) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 3" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 2" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 1" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "RUN!" for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-80, 17.4, -123) end
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 08:14 PM |
| Has to be a textbutton not a text label |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 08:15 PM |
| It is a text button I just named is textbanner cause it looks like a banner :o |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Aug 2013 08:17 PM |
| It did change, but since you made it a STARTERgui not a PLAYERgui, then it doesn't change what the player sees. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 08:17 PM |
| Also it doesn't matter if it is a text button nor a label |
|
|
| Report Abuse |
|
|
| |
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 08 Aug 2013 08:18 PM |
| You should be editing the gui from your PlayerGui |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Aug 2013 08:20 PM |
button = script.Parent -- This is the TextButton
wait(6) button.Text = "The game will start in: 3" wait(1) button.Text = "The game will start in: 2" wait(1) button.Text = "The game will start in: 1" wait(1) button.Text = "RUN!" for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-80, 17.4, -123) end
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 08:21 PM |
| Thanks! Does that access playergui? |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 08 Aug 2013 08:22 PM |
wait(6) for i = 1,3 do game.Players.LocalPlayer.ScreenGui.GuiBanner.Text = "The game will start in:"..i.."" wait(1) end for i,v in pairs (game.Players:GetChildren()) do v.Character:MoveTo(Vector3.new(-80, 17.4, -123) |
|
|
| Report Abuse |
|
|
| |
|
petro180
|
  |
| Joined: 30 Mar 2009 |
| Total Posts: 354 |
|
|
| 08 Aug 2013 08:23 PM |
One way,
players = game.Players:GetChildren()
for i = 1, #players wait(6) players[i].PlayerGui.ScreenGui.GuiBanner.Text = "The game will start in: 3" wait(1) players[i].PlayerGui.ScreenGui.GuiBanner.Text = "The game will start in: 2" wait(1) players[i].PlayerGui.ScreenGui.GuiBanner.Text = "The game will start in: 1" wait(1) players[i].PlayerGui.ScreenGui.GuiBanner.Text = "RUN!" for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-80, 17.4, -123) end end |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 08 Aug 2013 08:24 PM |
Sidekick's should work, but I recommend changing :GetChildren() to :GetPlayers()
If you put anything in the Players, such as a value, that will break.
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 08 Aug 2013 08:26 PM |
| The script is in workspace guys... |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 08 Aug 2013 08:26 PM |
If you use Petro's, change it to :GetPlayers too, and on the line:
for i = 1, #Players change it to for i = 1, #Players do or for i = 1, game.Players.NumPlayers do
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 08 Aug 2013 08:27 PM |
Put the script in the GUI then :P
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Aug 2013 08:43 PM |
Oh and I need help on one more thing related to this. At the end of the quick obby, there is a brick that does stuff when you touch it. But when I tried, it didn't do anything. Heres the script:
db = true
function touch (hit) h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil and db == true then db = false m = Instance.new("Message",game.Workspace) m.Text = hit.Parent.Name.." has won!" hit.leaderstats.Points = hit.leaderstats.Points + 100 wait(5) m:remove() for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-85, 598.4, -134) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start soon." wait(6) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 3" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 2" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 1" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "RUN!" for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-80, 17.4, -123)
db = true end end end end
script.Parent.Touched:connect(touch) |
|
|
| Report Abuse |
|
|
| |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 08 Aug 2013 08:47 PM |
db = true
function touch (hit) h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil and db == true then db = false m = Instance.new("Message",game.Workspace) m.Text = ""..hit.Parent.Name.." has won!"--it was here hit.leaderstats.Points = hit.leaderstats.Points + 100 wait(5) m:Remove() for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-85, 598.4, -134) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start soon." wait(6) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 3" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 2" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "The game will start in: 1" wait(1) game.StarterGui.ScreenGui.GuiBanner.Text = "RUN!" for i,v in pairs (game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-80, 17.4, -123)
db = true end end end end
script.Parent.Touched:connect(touch) |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 08:51 PM |
| Oh wait it doesnt now... ill try yours |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 08:55 PM |
It works for the most part, but the winner doesnt get points and the message stays there forever
|
|
|
| Report Abuse |
|
|