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 » Game Design
Home Search
 

Re: I need some help

Previous Thread :: Next Thread 
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 04:38 PM
if hit.Parent.Parent.Humanoid or hit.Parent.Humanoid and slash == true then

the game somehow thinks of workspace when i do this..

17:33:32.911 - Humanoid is not a valid member of Workspace
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 04:52 PM
bump
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 05:13 PM
anyone?
Report Abuse
ScriptingCon is not online. ScriptingCon
Joined: 19 Dec 2011
Total Posts: 215
30 Dec 2014 05:15 PM
Because you need to get the humanoid of the player that you're hitting. Not the humanoid in the workspace. -_-
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 05:19 PM
if hit.Parent.Parent.Humanoid or hit.Parent.Humanoid and slash == true then
"hit"
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 05:41 PM
apples
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 05:48 PM
oranges
Report Abuse
LilMcManiac is online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
30 Dec 2014 05:57 PM
Try if hit.Parent
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
30 Dec 2014 05:59 PM
I think it's because another part in workspace is touching the part that contains the onTouched event.
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
30 Dec 2014 08:08 PM
There are two if statements, one if it has a head, and one if it has a humanoid
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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