local tool = game.Players.LocalPlayer.Backpack
local breath = tool:FindFirstChild("Breath")
local bp = breath
local rep = game:FindFirstChild("Lighting")
local Breath = rep:FindFirstChild("Fire Breath")
script.Parent.MouseButton1Down:Connect(function()
if game.Players.LocalPlayer.leaderstats.Breaths.Value >= 1 then
print("Player Has Enough To Purchase Breath")
game.Players.LocalPlayer.ToolsPurchased.Tools.Value = game.Players.LocalPlayer.ToolsPurchased.Tools.Value + 1
if game.Players.LocalPlayer.ToolsPurchased.Tools.Value == 1 then
print("Spent 1 Breaths")
game.Players.LocalPlayer.leaderstats.Breaths.Value = game.Players.LocalPlayer.leaderstats.Breaths.Value - 1
print("Player Has Purchased Fire Breath")
Breath:Clone()
if Breath.Parent == game.Lighting then
Breath.Parent = game.Players.LocalPlayer.Backpack
print("Breath Has Moved")
else
if game.Players.LocalPlayer.leaderstats.Breaths.Value <= 1 then
print("Player Does Not Have Enough")
game.Players.LocalPlayer.leaderstats.Breaths.Value = 1
end
end
end
end
end)
Breath.Parent = game.Lighting
if game.Players.LocalPlayer.ToolsPurchased.Tools.Value == 1 then
if Breath.Parent == game.Players.LocalPlayer.Backpack then
bp:Destroy()
print("Breath Has Been Destroyed")
end
end
there are no errors but for some reason Breath won't destroy and 'Fire Breath' won't go to the players backpack?
okay so I found out how I can clone the fire breath then bring it to the backpack but I cannot remove the Breath and I cannot earn Breaths when I click with the Fire Breath?
