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

How to make a part reward points if the player is not touching it?

Asked by 5 years ago

So I have the first part of the script where it does nothing if they are touching the brick, but can't seem to figure out how to make it reward 'Points' if they are not touching it.

local AliveChecker = game.Workspace.AliveChecker
    AliveChecker.Touched:connect(function(hit)
        humanoid=hit.Parent:FindFirstChild("Humanoid")
        if humanoid ~=nil then      
            wait(0.1)
        end

Answer this question