Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do that Plzz ?

Asked by 9 years ago

how to do when the head touch the part I win money just head not torso ...

function onTouched(hit)
    wait (2)
 if hit.Parent.Humanoid~= nil then
  local cash = game.Players:findFirstChild(hit.Parent.Name).Stats.Points 
   cash.Value = cash.Value+ 1 
  end
 end
script.Parent.Touched:connect(onTouched)

Answer this question