How to make a clicking game in Roblox studio Part 2

Опубликовано: 20 Июнь 2026
на канале: AlfieDeveloper14 🐱
18
1

scripts:
-----------------------------------------------

Open:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.RebirthsFrame.Visible = true
end)

Close:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Visible = false
end)

Rebirth:
script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
local clicks = player.leaderstats.Clicks
local rebirths = player.leaderstats.Rebirths

if clicks.Value *Greater than*= 10 then
rebirths.Value = rebirths.Value + 1
clicks.Value = 0
end
end)