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 » Scripters
Home Search
 

Re: Character added event does not seem to work.

Previous Thread :: Next Thread 
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
13 Oct 2016 11:08 PM

game:GetService("Players").PlayerAdded:connect(function(Player)

Player.CharacterAdded:connect(function(Character)

print(1)

Character.HumanoidRootPart.Anchored = true

local SpawnPad = game.Workspace.SpawnPad.TeleRing

Character.HumanoidRootPart.CFrame = CFrame.new(SpawnPad.Position) * CFrame.new(0, 3, 0)

end)

end)

-- code works fine inside of PlayerAdded event.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
13 Oct 2016 11:09 PM
character added should fire as soon as a new character is added

maybe try WaitForChild("Humanoid")?
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
13 Oct 2016 11:12 PM

I just tried WaitForChild("HumanoidRootPart") still does not work.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
13 Oct 2016 11:13 PM

Does it have to do with filtering enabled in any possible way?
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
13 Oct 2016 11:14 PM

Disabled fe still does not work, so can't be that.
Report Abuse
KreoBox is not online. KreoBox
Joined: 24 Aug 2016
Total Posts: 356
13 Oct 2016 11:16 PM
I know it must seem hard to use your brain to figure out why something isn't working but I promise it isn't.


The character might already have spawned before you connect the function to the event.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
13 Oct 2016 11:16 PM

Had to wait for tele pad fixed.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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