I’m attempting to make a trowel tool that clones a random object from ReplicatedStorage in front of the player. The objects are all unanchored, welded together, and have a primary part. 2/3 of the objects work correctly, but the Tree object doesn’t. It is no different than the other objects- a PrimaryPart, a Weld, and both parts unanchored. But it clones to its original position.
Here is the script and explorer:
local tool = script.Parent
local handle = script.Parent.Handle
local objects = game:GetService("ReplicatedStorage").Objects
local debounce = false
tool.Activated:Connect(function()
if debounce == false then
debounce = true
handle["bass.wav"]:Play()
local object = (objects:GetChildren()[math.random(1,#objects:GetChildren())]):Clone()
object.PrimaryPart.CFrame = handle.CFrame + (handle.CFrame.LookVector*5)
object.Parent = workspace.Constructs
task.wait(1)
debounce = false
end
end)
