Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Brick touching locally ?

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)

1 comment

0

It might be better to use local parts http://wiki.roblox.com/index.php?title=Local_parts

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.