Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

tree that gets cut when axe equipped?

i want t make a tree that is cut when a specific tool is equipped

require(game.players.backpack.axe)

if axe then
tree.anchored=false
end

the script doesent work

1 comment

0

hey

1 answer

You need to local ise the variable and make a function

Here is an example

local axe = require(game.Players.Backpack.axe)
local tree = game.Workspace.tree

axe.Activated:Connect(function()
	tree.Anchored = false
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.