I’m having some issues with a tree choping system i have made. The tree won’t detect that the axe is touching. I’m trying to print out hit, but only the player bodyparts is being printed out. Please help.
The script:
– This script will make the player able to chop down the tree
– Making the “GameFolder” variables
local GameFolder = game.Workspace.GameFolder
local Sounds = GameFolder.Sounds
local ChopSound = Sounds.SoundEffects.Trees.Chop
– Making the tree variables
local Tree = script.Parent.Parent
local Leaves = Tree.Leaves
local Log = Tree.Log
– Making variables for lives and debounce
local db = false
local lives = 5
– Making a function on hit
Log.Touched:Connect(function(hit)
print(hit.Name)
end)