I need this global script to be able to find the local player who clicked an ImageButton. An example would be this.

script.Parent.Activated:connect (function(plr)
	print (plr.Name)
end

this doesn't work though because it will print Input or whatever. How do i fix this?

And also if you could make it so it creates a variable that works throughout the script that would be superrrr useful.

3 comments

1

This isn't the place to ask for people to write your code for you. If you need the server to know when a player has clicked a button, look into remoteEvents/remoteFunctions.

0

Don't ask the same question twice.

0

oh please... don't.