I need help with the :clone part in my code on line 12. I have tried it and it didn't work. Is it part of the clicking part or the :clone part exactly?
Here is the code:
local ClickDetector = script.Parent.ClickDetector ClickDetector.MouseHoverEnter:Connect(function() game.Workspace.PlantExample.Position = script.Parent.Position end) ClickDetector.MouseHoverLeave:Connect(function() game.Workspace.PlantExample.Position = game.Workspace.PlantExampleStay.Position end) ClickDetector.MouseClick:Connect(function() game.Workspace.PlantExample:Clone() end)
Anyone?
You have to set the parent, like:
game.Workspace.PlantExample:Clone().Parent = game.Workspace