#its brokes tool's all scripts

20 messages · Page 1 of 1 (latest)

quaint prawn
#

local rs = game:GetService("ServerStorage")
local crackedbirdegg = rs:WaitForChild("CrackedBirdEgg")
local player = game.Players.LocalPlayer
local backpack = player.Backpack

local function craftPressed()
local birdegg = backpack:FindFirstChild("BirdEgg")
local rock = backpack:FindFirstChild("Rock")
if birdegg then
if rock then
rock:Destroy()
birdegg:Destroy()
local crackedbirdeggC = crackedbirdegg:Clone()
crackedbirdeggC.Parent = backpack
end
end
end

script.Parent.CraftButton.MouseButton1Click:Connect(craftPressed)

strong bisonBOT
#

studio** You are now Level 1! **studio

patent leaf
#

What is it parented under?

quaint prawn
patent leaf
#

Alright, I see.

#

From what I know FRAMES do not have an event called: "MouseButton1Click", you could use InputBegan or just make a button (if it's the only GUI element in that area)

#

@quaint prawn

quaint prawn
#

?

patent leaf
#

Wait you are also indexing a button, god

#

honestly no idea why it isn't working

#

w a aa i t

#

Can you check if it even fires off, and if yes where it just fails?

quaint prawn
patent leaf
#

yep

#

maybe it contains an error

quaint prawn
#

nope, theres no about this

patent leaf
#

alright can you just slap some prints when it first detects and after each if check?

strong bisonBOT
#

studio** You are now Level 8! **studio

quaint prawn
#

oh i fixed it