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: wait until character loads?

Previous Thread :: Next Thread 
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
06 Feb 2016 10:38 AM
how do i do this?


function join(player)
wait(--[[Amount of time for players character to be ready in the workspace--]])

print("CharacterLoaded")

end
game:GetService("Players").PlayerAdded:connect(join)



Report Abuse
Csharp0 is not online. Csharp0
Joined: 05 Mar 2015
Total Posts: 261
06 Feb 2016 10:42 AM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
-- Do stuff with character
end)
end)

~Time to commit seppuku.
Report Abuse
progatician is not online. progatician
Joined: 30 Aug 2013
Total Posts: 8429
06 Feb 2016 10:43 AM
or

function join(player)
local char=player.Character or player.CharacterAdded:wait()
end
Report Abuse
dudefun1234 is not online. dudefun1234
Joined: 21 Jul 2013
Total Posts: 3038
06 Feb 2016 10:47 AM
but then after ^ this guys variable put
if plyer ~= nil then
--put what u need into here
end
Report Abuse
dudefun1234 is not online. dudefun1234
Joined: 21 Jul 2013
Total Posts: 3038
06 Feb 2016 10:48 AM
char not plyer woops
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