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: need help

Previous Thread :: Next Thread 
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
13 Jan 2014 08:36 PM
im not very good at playeradded scripts,i thought this would be simple..
ok,so what Im trying to do,is just copy a startergui to the player,IF his name is islandmaker2012(me)
so heres what I got..not working btw

game.Players.PlayerAdded:connect(function(player)
if player.Name == "islandmaker2012" then
admin = game.Lighting.admin:clone()
admin.Parent = player.PlayerGui
end
end)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
13 Jan 2014 08:37 PM
also,when I die,i want it to clone it to me if I(only me) die
I guess it would be a ":Died()" event..idk..
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
13 Jan 2014 08:37 PM
admin is nil
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
13 Jan 2014 08:38 PM
Play your game. It should work.



Btw, when you reset, the GUI won't be re added so use CharacterAdded along with it.
Report Abuse
Thaeh is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
13 Jan 2014 08:38 PM
all u gotta do is put the gui in startergui
check the player name
if its u, then its visible
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
13 Jan 2014 08:38 PM
I did play it..nothing happened..
@cnt,why is admin nil?
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
13 Jan 2014 08:39 PM
Admin is nil as in that the path is invalid?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
13 Jan 2014 08:40 PM
Oh never mind, I didn't see that line...

game.Players.PlayerAdded:connect(function(player)
if player.Name == "islandmaker2012" then
admin = game.Lighting.admin:clone()
admin.Parent = player:WaitForChild("PlayerGui")
end
end)

Try that
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
13 Jan 2014 08:40 PM
how is admin nil?
"admin" is a StarterGui in Lighting
Lighting
-admin

admin = game.Lighting.admin:clone()
admin.Parent = player
..
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
13 Jan 2014 08:41 PM
"Oh never mind, I didn't see that line..."
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
13 Jan 2014 08:41 PM
k,i shall try it,thx
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
13 Jan 2014 08:42 PM
thx cnt!you my hero!:D
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