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
 

Noob help

Previous Thread :: Next Thread 
nagazxcvbnm is not online. nagazxcvbnm
Joined: 19 Mar 2010
Total Posts: 1935
04 May 2015 03:44 PM
I need the text to update in the GUI when a part is touched;
I made this:

function update(irrelevant)
game.StarterGui.ScreenGui.TextLabel.Text = ("Story Line: Updated!")
end

script.Parent.Touched:connect(update)

help?
Report Abuse
iwishforpie1 is not online. iwishforpie1
Joined: 20 Mar 2011
Total Posts: 1423
04 May 2015 03:45 PM
What's the problem?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 May 2015 03:52 PM
function onTouch(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(human.Parent)
if human and player then
player.PlayerGui.ScreenGui.TextLabel.Text = "Story Line: Updated!"
end
end

script.Parent.Touched:connect(onTouch)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 May 2015 03:53 PM
You might also want to add a debounce.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
04 May 2015 03:55 PM
I would rather use :FireClient for FilteringEnabled support.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 May 2015 03:57 PM
Not all people use FE
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
04 May 2015 04:07 PM
All people should start using FE.
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