Is there a way to make a touched function so that it only fires if only a certain player touches it? I tried the following:
part.Touched:connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent == [Playername goes here] then
--Script here
end
end
end)
but it doesn't work. Advice? I'm still new to this kind of stuff so uh yeah..

1 comment
worked, thank you! :D