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
 

why isn't this working? The output doesn't say anything!

Previous Thread :: Next Thread 
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
24 Jan 2016 07:05 PM
game.Players.PlayerAdded:connect(function(player)
wait(2)
local character = player:WaitForChild("Character")
local humanoid = character:WaitForChild("Humanoid")
humanoid.Health = 0
end)
Report Abuse
FrostOver is not online. FrostOver
Joined: 20 Jun 2013
Total Posts: 299
24 Jan 2016 07:07 PM
character is not a child of player it's a property
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
24 Jan 2016 07:09 PM
Well mb my idea is bad , but instead of using character i just create my own parameter by finding the player name in game like

game.Players.PlayerAdded:connect(function(player)
local PlayerIG = game.Workspace:WaitForChild(player.Name)
local hum = PlayerIG:FindFirstChild("Humanoid")
hum.Health = 0
end)
Report Abuse
FrostOver is not online. FrostOver
Joined: 20 Jun 2013
Total Posts: 299
24 Jan 2016 07:11 PM
use
repeat wait() until player.Character ~= nil
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
24 Jan 2016 07:19 PM
frost ik my stupid mistake! Could i just do instead of

local character = player:WaitForChild("Character")

shouldn't I do...

local character = player.Character
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