Why will it only give me 1.5x clicks when I click the button to buy it?
Can someone please tell me why I only get 1.5x clicks when I click the button to buy 1.5x clicks, but not when I click the button to give me clicks? Thanks!
01 | local button = script.Parent |
02 | local player = button:FindFirstAncestorOfClass( "Player" ) |
04 | player = button:FindFirstAncestorOfClass( "Player" ) |
09 | button.MouseButton 1 Click:Connect( function () |
13 | local leaderstats = player:WaitForChild( "leaderstats" ) |
14 | local Clicks = leaderstats:WaitForChild( "Clicks" ) |
17 | task.delay( 0.5 , function () |
24 | player.PlayerGui.Shop.ShopFrame.X 1 dot 5. MouseButton 1 Click:Connect( function () |
25 | local leaderstats = player:WaitForChild( "leaderstats" ) |
26 | local Clicks = leaderstats:WaitForChild( "Clicks" ) |
27 | local Coins = leaderstats:WaitForChild( "Coins" ) |
29 | if (Coins.Value > = 50 ) and debounce 2 then |
33 | task.delay( 0.5 , function () |