Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

tree that gets cut when axe equipped?

Asked by 4 years ago

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

0
hey zyma015 -5 — 4y

1 answer

Log in to vote
-1
Answered by 4 years ago
Edited 4 years ago

You need tolocal 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)
Ad

Answer this question