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: is there a way to detect a humanoid through a click?

Previous Thread :: Next Thread 
Horrible_Pun is not online. Horrible_Pun
Joined: 13 May 2017
Total Posts: 5102
08 Aug 2017 06:46 PM
title
Report Abuse
Rostrum is not online. Rostrum
Joined: 03 Dec 2011
Total Posts: 26824
08 Aug 2017 06:53 PM
im rubbish at scripting but heres an attempt
assuming there is a brick with a clickdetector in it and this script i think this works

script.Parent.ClickDetector.MouseClick:connect(function(hit)
if hit.Character:FindFirstChild("Humanoid") then
print("there is a humanoid")
else
print("there is no humanoid")

end
end)


Report Abuse
Horrible_Pun is not online. Horrible_Pun
Joined: 13 May 2017
Total Posts: 5102
08 Aug 2017 06:57 PM
yeah it works thanks!
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