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

Brick touching locally ?

Asked by
Bulvyte 388 Moderation Voter
7 years ago
Edited 7 years ago

So i want the brick when it's touched only for the PLAYER who touches it let him pass trough not others, is it even possible ?

local a = script.Parent

a.Touched:connect(function()
    a.Transparency = 0.5
    a.CanCollide = true
    wait(0.25)
    a.Transparency = 0
    a.CanCollide = false
end)
0
It might be better to use local parts http://wiki.roblox.com/index.php?title=Local_parts User#5423 17 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

You should have your script create a StringValue that stores the name of the player who first touched the brick and have it check every other player who touches the brick to see if that player matches the name stored within the created StringValue.

Ad

Answer this question