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...
Actually you're not that far off!
Typically I like to call the function right off, so this is what I'll do.
In Click functions, the argument is actually the player itself!
script.Parent.ClickDetector.MouseClick:connect(function(click)-- This is a more efficient way of calling your function! if click.Name == "Player1" then -- What you were doing was asking for the game.Players's name! print("worked") else return end end)