Well, i was working on a Planting Tool, i added the Tool, and a Localscript, it seemed to be fine but, i got a problem about GetChildren i'm almost a newbie to Lua Programming, anyways to fix this?
mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:connect(function()
local Tree = game.ServerStorage.Tree.Tree1.GetChildren:Clone()
Tree.Position = mouse.Hit.p
Tree.Parent = game.Workspace
wait(10)
Tree.Tree1.GetChildren.Transparency = 1
Tree.Tree1.Tree2.GetChildren.Transparency = 0
wait(0.1)
Tree.Tree1.Tree2.Leaf1.Transparency = 0.4
Tree.Tree2.Leaf2.Transparency = 0.4
wait(10)
Tree.Tree1.Tree2.GetChildren.Transparency = 1
Tree.Tree1.Tree2.Tree3.GetChildren.Transparency = 0
wait(0.1)
Tree.Tree1.Tree2.Tree3.Leave1.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Leave2.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Leave3.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Leave4.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Leave5.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Leave6.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Particle.Transparency = 0.4
Tree.Tree1.Tree2.Tree3.Particle.ParticleEmitter.Enabled = true
end)
-- Note : I would be thankful if there is a way to add a delay too, like (* 20 *) seconds needed for the tool to be usable again, and also, here is the way i placed the models.
ServerStorage
-- Tree
---- Tree1
------ Tree2
-------- Tree3
-- Thank you for spending time and reading this.

6 comments
There is an error - Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this..
I said, set PrimaryPart first, I even bolded the text so that you would notice
Thanks for the awesome help,it works, but even when the tool is not selected.
Please help with that.
And also, another problem, when you die, it won't work anymore :/
Instead of mouse.Button1Down use tool.Activated