Basically, I need a script to find out which player touched a block.
This is what I have, not sure if I'm on the right path or not?
Brick = script.Parent
Busy = false
function Touched(Part)
if not Busy then
Busy = true
if Part.Parent:findFirstChild("Humanoid") then
LocalPlayer = Part.Parent:findFirstChild("Humanoid")
end
end
end
script.Parent.Touched:connect(function(hit)
script.Parent.BrickColor =
BrickColor.new(game.Players.PowerHouse2424.TeamColor.Color)
end)
