I need help on line 5 how do I find the localplayer that touched it based off of line 5?
function onTouched(hit)
game.Players:FindFirstChild
script.Parent.Transparency = 1
script.Parent.CanCollide = false
game.Players:FindFirstChild -- part of script I need help on
end
script.Parent.Touched:connect(onTouched)

1 comment
It was not a door it was a money bag I was trying to make it to where when you touch the money bag it dissapears and you get money