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: PlayerAdded and CharacterAdded Event Help - Not Firing

Previous Thread :: Next Thread 
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
15 May 2014 09:45 PM
game.Players.PlayerAdded:connect(function(player)
Player = sys.Players[player.Name]

player.CharacterAdded:connect(function(character)
getPlayer = Player:GetChildren()
print("PLAYER: '" .. player.Name .. "' Successfully Loaded!")
for i = 1,#getCPlugins do
repeat wait() until player:findFirstChild("PlayerGui")
getCPlugins[i]:Clone().Parent = Player["PlayerGui"]
Player["PlayerGui"][getCPlugins[i].Name].Disabled = false
end
end)
end)

Am I missing some event or something? I don't understand why it does not fire when I respawn but only when I just enter.
Report Abuse
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
15 May 2014 09:58 PM
Please, anyone? Someone...
Report Abuse
DaleMaturingan is not online. DaleMaturingan
Joined: 17 Oct 2012
Total Posts: 1179
15 May 2014 10:18 PM
Blame ROBLOX.
Force First Person Lock doesn't work either on PlayerAdded
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
15 May 2014 10:31 PM
Don't blame roblox, this is entirely an issue with the code, because first off, 'Players' is a child of DataModel, or as accessed from scripts, 'game', so replace 'sys' with 'game. The thing is, you can access the player from your playeradded event, so you really don't need to have 'Player'.

this is a signature: pcall(function() print([[apparently this is a string]]) end)
Report Abuse
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
16 May 2014 03:18 PM
sys = _G
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