So heres my script.
function onClicked(player)
local nam = player.Name
if
game.Players.nam == true
then
game.Workspace:ClearAllChildren()
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
What I'm trying to do is find out if the clickers name, then cross examine it from the players list to make sure they're a player. How would I do this?
