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
 

Re: Guis dont change text when I want them to

Previous Thread :: Next Thread 
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
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
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 Aug 2013 08:14 PM
Has to be a textbutton not a text label
Report Abuse
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
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
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 Aug 2013 08:17 PM
What's the output say?
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
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
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
08 Aug 2013 08:17 PM
Also it doesn't matter if it is a text button nor a label
Report Abuse
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
08 Aug 2013 08:18 PM
How would I do that? :O
Report Abuse
Voidion is not online. 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
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
08 Aug 2013 08:19 PM
It dont say anything
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
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
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
08 Aug 2013 08:21 PM
Thanks! Does that access playergui?
Report Abuse
Hibobb is not online. 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
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 Aug 2013 08:22 PM
Yes.
Report Abuse
petro180 is not online. 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 is not online. 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 is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 08:26 PM
The script is in workspace guys...
Report Abuse
lordrambo is not online. 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 is not online. 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
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
08 Aug 2013 08:35 PM
Thanks guys it works!
Report Abuse
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
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
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
08 Aug 2013 08:46 PM
nvm it works
Report Abuse
Hibobb is not online. 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
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
08 Aug 2013 08:51 PM
Oh wait it doesnt now... ill try yours
Report Abuse
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
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
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