I'm doing a coding thing, and I need to get the character from the player, but if I use local scripts it wont show up for other players.
My code is this:
function Clicked(plr)
plr.Character:FindFirstChild("Accesories"):FindFirstChild("Left Eye").Size = Vector3.new(1,1,1)
end
script.Parent.MouseButton1Down:Connect(Clicked)
(This is a gui btw)
When I click it, the output says Players.S_Green.PlayerGui.ScreenGui.TextButton.Script:2: attempt to index number with 'Character''
I need help...

2 comments
Yes, but then exploiters could take over the server ENTIRELY. And that is YOUR problem for having GUI triggers on the server.
No, this is why you need to code responsibly and have sanity checks done on the server. If you were to avoid using RemoteEvents at all costs for the fear of exploiters, you would have no way to communicate between the client and server.