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: Execute script on player spawn?

Previous Thread :: Next Thread 
dude6354 is not online. dude6354
Joined: 04 Apr 2009
Total Posts: 205
23 Apr 2013 06:46 PM
How what would i do if i want something to happen when a player spawns. for example: Player spawns, a GUI shows up for him.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
23 Apr 2013 06:48 PM
Put it in StarterGui...?

Next time ask in Script Helpers.
Report Abuse
LuaPenguin is not online. LuaPenguin
Joined: 19 Apr 2013
Total Posts: 39
23 Apr 2013 06:48 PM
Game.Players.ChildAdded:connect(function(Player)
Player.CharacterAdded:connect(function()
print("RESPAWNED")
end)
end)
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
23 Apr 2013 06:49 PM
Oh. Derp. This isn't scripters =D So I was just mean to a random person asking for help for nothing.

Very sorry about that, didn't mean to. Thought this was Scripters, which has a habit of getting spammed with help requests.

But yes, scripters in PlayerGui get put in the Player's PlayerGui on spawn and StarterPack goes in backpack.
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
23 Apr 2013 06:53 PM
If you prefer anonymous functions:

game.Workspace.ForceSky.Humanoid.Died:connect(function()
repeat wait() until game.Players.ForceSky.Character
print("DA GUY HAS RESPAUNED!")
end)

If you don't:

function CHEESE()
repeat wait() until game.Players.ForceSky.Character
print("Respauned, da guy has")
end
game.Workspace.ForceSky.Humanoid.Died:connect(CHEESE)
Report Abuse
dude6354 is not online. dude6354
Joined: 04 Apr 2009
Total Posts: 205
23 Apr 2013 06:57 PM
Sorry guys, i just realised after i posted this i just needed to put it in started GUI. i havent played roblox in a while so im dumb lol. anyway, i realised also that thi is the wrong section to post this in. oops.
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
23 Apr 2013 06:58 PM
This is the right section to post this in. You might have missed Render's apology. Also, if you want to do something other than a GUI, then you could use mine's or LuaPenguin's.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
23 Apr 2013 06:59 PM
No, it's the right section =P I'm just dumb and thought it wasn't. If you need any help, please do post it here.
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