I want to make a script where if someone clicks with the tool a truss will appear and then remove itself I dont know why it is not working I put a click detector on the tool and I want the truss to go to the players position.
script.Parent.ClickDetector.MouseClick:Connect(function(playerWhoClicked)
local new = Instance.new("TrussPart")
new.Position = playerWhoClicked.leftleg.Position
new.Size = 2,25,2
new.Parent = game.Workspace
wait (20)
new:Destroy()
end)
Please answer!!!! Thank you if you do!

3 comments
playerWhoClicked.Character["Left Leg"].Position anyways I made an answer (fixed line 3)
:/
Thank you!