local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local clicks = leaderstats:WaitForChild("Clicks")
local coins = leaderstats:WaitForChild("Coins")
local textLabel = script.Parent
local cost = 10
script.Parent.MouseButton1Click:Connect(function()
if clicks.Value >= cost then
textLabel.Text = "NeChuspan"
wait(1)
coins.Value = coins.Value + 3
clicks.Value = clicks.Value - cost
textLabel.Text = '3+ coin (' .. cost .. ' clicks)'
else
textLabel.Text = 'Chuspan'
wait(1)
textLabel.Text = '3+ coin (' .. cost .. ' clicks)'
end
end)
local player = game.Players.LocalPlayer
local clicks = player:WaitForChild('leaderstats'):WaitForChild('Clicks')
local coins = player:WaitForChild('leaderstats'):WaitForChild('Coins')
script.Parent.MouseButton1Click:Connect(function()
if clicks.Value >= 50 then -- Изменено на 50 кликов, чтобы соответствовать тексту
script.Parent.Text = "NeChuspan"
wait(1)
coins.Value = coins.Value + 3
clicks.Value = clicks.Value - 50 -- Изменено на вычитание 50 кликов
script.Parent.Text = '3+ coin (50 clicks)'
else
script.Parent.Text = 'Chuspan'
wait(1)
script.Parent.Text = '3+ coin (50 clicks)'
end
end)
local player = game.Players.LocalPlayer
local clicks = player:WaitForChild('leaderstats'):WaitForChild('Clicks')
local coins = player:WaitForChild('leaderstats'):WaitForChild('Coins')
script.Parent.MouseButton1Click:Connect(function()
if clicks.Value >= 10 then
script.Parent.Text = "NeChuspan"
wait(1)
coins.Value = coins.Value + 3
clicks.Value = clicks.Value - 10
script.Parent.Text = '3+ coin (50 clicks)
else
script.Parent.Text = 'Chuspan'
wait(1)
script.Parent.Text = '3+ coin (50 clicks)'
end
end)