I need a number to be added when the button is pressed and immediately displayed on the player’s gui, but I need to display the % sign there as well, but I don’t remember how to do this.
local i = 0
SP = script.Parent
_G.SCharge = 0
local number = 0
local pr = "%"
script.Parent.C4.MouseButton1Click:Connect(function()
repeat
wait(0.1)
i += 0.01
number += 1
_G.SCharge += 1
SP.ShockCharge.Text = tostring(number),pr
until i >= 1
end)