Okay the bug is still here for perks its fixed for items
1 Like
i forgot that perks are bugged and so made the fix for items only this script should fix it for those
BuyButtion.MouseButton1Click:Connect(function()
print(PurchasedItem.Value)
if ButtionCooldown == false then
ButtionCooldown = true
if PurchasedItem.Value == false and IsAItemSelectedValue.Value == true and PressedButtion:GetAttribute("TypeofButtion") == "Item" then
PurchasedItem.Value = true
ButtionCooldown = true
print(PurchasedItem.Value)
BuyItemEvent:FireServer(PressedButtion.ItemThatTheButtionsells)
if PurchasedItem.Value == true then
BuyButtion.Text = "Item Purchased!"
task.wait(2)
BuyButtion.Text = "You already purchased a item you can't purchase another one!"
else
ButtionCooldown = true
BuyButtion.Text = "Not Enough BaldiCoins!"
task.wait(2)
BuyButtion.Text = "Buy item"
ButtionCooldown = false
end
task.wait(1)
ButtionCooldown = false
elseif PurchasedPerk.Value == false and IsAItemSelectedValue.Value == true and PressedButtion:GetAttribute("TypeofButtion") == "Perk" then
ButtionCooldown = true
PurchasedPerk.Value = true
BuyPerkEvent:FireServer(PressedButtion.PerkThatTheButtionsells.Value)
task.wait(0.2)
if PurchasedPerk.Value == true then
BuyButtion.Text = "Perk Purchased!"
task.wait(2)
BuyButtion.Text = "You already purchased a Perk you can't purchase another one!"
else
ButtionCooldown = true
BuyButtion.Text = "Not Enough BaldiCoins!"
task.wait(2)
BuyButtion.Text = "Buy Perk"
ButtionCooldown = false
end
task.wait(1)
ButtionCooldown = false
end
task.wait(0.5)
ButtionCooldown = false
end
end)
what u did wrong is that you forgot to set PurchasedItem and PurchasedPerk to true after they are bought
Bro well I’ma test this now
(30 words requirement)
1 Like
IT FULLY WORKS THANK YOU!!!
(30 words requirement)
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.