Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this printing an object isntead of player?

Asked by 4 years ago
Edited 4 years ago
script.Parent.Touched:connect(function(hit)
    print(hit.Parent.Name)
end)

I also tried making the parameter 'player' but it doesn't work. Why is this?

0
I actually just found out that when the part is anchored, it doesn't print an object, however prints a player when I touch it. I also tried putting the anchored part inside of the baseplate to double check. Why is the problem occurring when the part is unanchored? ISkyLordDoge 37 — 4y
0
Collision can only be detected if atleast one of the two parts are unanchored, since your part that was looking for collision was unanchored it also counts anchored objects such as whatever it was placed on as the part that touches it stef0206 125 — 4y
0
Thank you for advice! ISkyLordDoge 37 — 4y

Answer this question