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: LocalScript not working :\

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 12:57 AM
So this is in a LocalScript in StarterGui and it isn't working, should I just make it a normal script?

game.Players.PlayerAdded:connect(function(p)
wait(1)
char = script.Parent.Parent.Character
playerGui = script.Parent.Parent.PlayerGui
local msg = Instance.new("Hint", playerGui)
msg.Name = "Hint"
msg.Text = "Hello " .. p.Name .. "!"
wait(5)
playerGui.Hint:Destroy()
end)
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 01:03 AM
!??!?!?!?!?!??!
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 01:46 AM
??
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 02:25 AM
Wow, anyone?

thecaptain97??
????
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
23 Jul 2012 02:28 AM
o-o Put this in the workspace:

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
local h = Instance.new("Hint", player.PlayerGui)
h.Text = "Hello "..player.Name.."!"
wait(5)
h:Destroy()
end)
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
23 Jul 2012 02:32 AM
For not changing the script too much:

game.Players.PlayerAdded:connect(function(p)
wait(1)
--char = script.Parent.Parent.Parent.Character --you forgot a parent
char = p.Character --I prefer this line instead of the one above, the line is unnecessary anyways
playerGui = p.PlayerGui
local msg = Instance.new("Hint", playerGui)
msg.Name = "Hint"
msg.Text = "Hello " .. p.Name .. "!"
wait(5)
playerGui.Hint:Destroy()
end)
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 02:34 AM
@ElectricAxel, thanks I'll check it in the morning, I am too lazy to open Studio to test it.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 02:34 AM
I am gonna try it. LOL
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Jul 2012 02:42 AM
Thanks, guys!
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