I’m trying to make it so when you hit the button, the number you get will show up in a textlabel. This is my current script.
local Switch = script.Parent
local function rollDice(): number
return math.random(1, 10)
end
local Debounce = false
Switch.MouseButton1Click:Connect(function()
if not Debounce then
local Nums = rollDice()
script.Parent.Parent.TextLabel = "Normal Roll - "…Nums
end
end)