I'm making a game and I'm making a reload map script but I can't figure out how to make a button that says how many people clicked it. Thanks!
A way i found for this is you add a number value child into the text then make the text display the number value after you convert the number into text (I would have no idea what this means if i read it so here)
local NumberValue = Instance.new("NumberValue") --Create a NumberValue NumberValue.Parent = script.Parent --Make the parent of the newly created NumberValue the TextButton script.Parent.Parent.TextButton.MouseButton1Click:Connect(function() script.Parent.NumberValue.Value = script.Parent.NumberValue.Value + 1 --Add 1 to the value to resemble a click local Number = tostring(NumberValue.Value) --The NumberValue's Value being translated into text and Learn more about strings here: (https://developer.roblox.com/en-us/articles/String) script.Parent.Text = Number --Changing the text into the values value end)