The touched event activates when anything touches a part, how can make a function activate when only a player touches it?
You can add a check to see if the part is a part of a character model like this:
Part.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
--put your code here
end
end)
5 Likes