📜  如何在 roblox studio 中添加数字 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:26.100000             🧑  作者: Mango

代码示例1
-- LocalScript inside of the TextButton

local label = -- path to your TextLabel inside of your SurfaceGui
local number = 0

script.Parent.MouseButton1Click:Connect(function()
    number += 1
    label.Text = number
end)