I'm a little rusty on Lua and I forgot how to get the name of the player from a ClickDetector
This is all I got
function onClicked(click)
if click.Parent.Name == "Player1" then
print("worked")
else return
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Any help? Kinda clueless...

4 comments
Thank you!
Wouldn't "click" return a nil value on line 2 since you named the player argument "Click" on line 1?
@minikitkat @m39 Yup, Error on line 2. Capitalize your letters appropriately please.
Alright I updated my answer! Thanks for pointing that out!