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
 

SurfaceGui text won't show properly

Previous Thread :: Next Thread 
kevinnight45 is not online. kevinnight45
Joined: 15 Oct 2010
Total Posts: 20
30 May 2014 06:46 PM
help


part = script.Parent
function touch(par)---Touch Function
function getname(plr,txt)
return plr
end
nme = getname(par.Parent.Name)
print("Hi",nme)--test if it works
part.SurfaceGui.TextLabel.Text = "Hi",nme-- won't show the name :C
end

part.Touched:connect(touch)--connects function
part = script.Parent
function touch(par)---Touch Function
function getname(plr,txt)
return plr
end
nme = getname(par.Parent.Name)
print("Hi",nme)--test if it works
part.SurfaceGui.TextLabel.Text = "Hi",nme-- won't show the name :C
end

part.Touched:connect(touch)--connects function
Report Abuse
kevinnight45 is not online. kevinnight45
Joined: 15 Oct 2010
Total Posts: 20
30 May 2014 06:47 PM
Oops copied and pasted the script two times
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
30 May 2014 06:47 PM
"Hi" .. nme
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