of     1   

Makkymakk
#16036134Friday, October 30, 2009 2:44 PM GMT

I need some scripting help with an OnClicked Script. i want to make a pool of water where when you click it you will drink it. would the script look somthing like this? functionOnClicked() findfirstchild("Humanoid") would that find the humanoid of the player that clicked the water?
RightLegRed
#16036177Friday, October 30, 2009 2:46 PM GMT

function OnClicked() if findFirstChild("Humanoid") then --Blah end end script.Parent.ClickDetector.MouseClick:connect(OnClicked)
RightLegRed
#16036194Friday, October 30, 2009 2:47 PM GMT

You need to add before the "findFirstChild("Humanoid")" the path to the player
Makkymakk
#16036675Friday, October 30, 2009 3:09 PM GMT

function OnClicked() findfirstchild("Humanoid") if (Humanoid~= nil) then --blah --blah end end would it be something like that?
RightLegRed
#16036708Friday, October 30, 2009 3:10 PM GMT

No, you need to make the path to the player. Which, With a clickdetector can only be found by Magnitude.
Makkymakk
#16036796Friday, October 30, 2009 3:14 PM GMT

i think i'm gonna try it my way then try at wierd "Magnitude" thingy u talked about.

    of     1