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: Modify text of a playergui gui hitting a brick

Previous Thread :: Next Thread 
DealWithMeDarling is not online. DealWithMeDarling
Joined: 11 Jun 2010
Total Posts: 66
12 Mar 2016 02:12 PM
How do we modify text of an existing gui by hitting a brick?
Report Abuse
badguy1233 is online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
12 Mar 2016 02:14 PM
part.Touched:connect(function(part)
local player=game.Players:GetPlayerFromCharacter(part.Parent)
if player then
player.PlayerGui.ExistingGui.TextLabel.Text="it works!"
end
end

--change line 1 and line 4 for fit your needs
Report Abuse
DealWithMeDarling is not online. DealWithMeDarling
Joined: 11 Jun 2010
Total Posts: 66
12 Mar 2016 02:29 PM
Thx you! ps: you forgot to put the ) afther the end.

player.PlayerGui.ExistingGui.TextLabel.Text="it works!"
end
end)
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