Custom Button Pressed Function!

ok, so, if you have seen my map EndZone, you would know it has a function saying Button # Pressed, now this took me a long time to do, because i had to insert the function into every single button function, but i found in a map i am doing now with @GalaxyGHD that there is a MUCH Quicker way, and i am here to show you that way!

Lib.Button:connect(function(p, bNo) 
	game:GetService("ReplicatedStorage").Remote.Alert:FireAllClients(p.Name .. " Pressed Button #" .. bNo, Color3.fromRGB(255,255,255),false,false)
end)

so its like the button function script, except it makes an Alert saying Player Name Pressed button #1 etc, so all you need to do is insert this at the top of your script and ta da! (also this alert function can be used to make text pop up at the bottom)

- Happy Scripting :slight_smile:
- Kris

4 Likes

Nice lol

2 Likes

ok

3 Likes

thanks