local button = script.Parent
local player = game.Players.LocalPlayer
local clicks = 0
local scoreLabel = player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("TextLabel")
button.MouseButton1Click:Connect(function()
clicks = clicks + 1
scoreLabel.Text = "Clicks: " .. clicks
end)
Негізгі бет HOW TO MAKE A CLICKING BUTTON
Пікірлер: 5