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

How Can I Remove CanTouch only for one player in a script?

Asked by 3 years ago

The title says most of it, how can I remove the CanTouch value in a script if the player has a Value called Owner1 assigned to their name?

This doesn't work:

if Owner1.Value == player.Name then
        -- I'm doing game.Workspace.[Insert Part Here].CanTouch = false, but it's still touching
    end
0
in the touch script in the part, just check if the player that touched it has the value set to them, if they do, dont do anything, otherwise, run the function FirewolfYT_751 223 — 3y
0
yeah that's what Owner1 does but it's not working, I tried something else but a new bug came, when the bug gets solved I'm gonna answer this question SuperSM1 67 — 3y

Answer this question