The Parent property of StarterFlower is locked, current parent: NULL, new parent Workspace?
I have this script:
02 | local distance = math.floor((player.Character:WaitForChild( "HumanoidRootPart" ).Position - mouse.Hit.p).magnitude) |
03 | if ibreak and distance < = 15 then |
04 | if mouse.Target.Name = = "Dirt" or mouse.Target.Name = = "Grass" then |
05 | clone.Name = player.Name.. "'s plant." |
13 | if mouse.Target ~ = nil then |
15 | clone.Parent = game.Workspace |
16 | local distance = math.floor((player.Character:WaitForChild( "HumanoidRootPart" ).Position - mouse.Hit.p).magnitude) |
17 | if mouse.Target.Parent.Name ~ = script.Parent.Name then |
18 | clone:MoveTo(mouse.Hit.p) |
23 | print ( "Clone's gone!" ) |
I get a error everytime when I click to Cancel and to destroy the model that says:
17:38:34.699 - The Parent property of StarterFlower is locked, current parent: NULL, new parent Workspace
17:38:34.700 - Stack Begin
17:38:34.701 - Script 'Players.wilsonsilva007.PlayerGui.Inventory.Background.Starter_Flower.ImageBackground.Image.StarterFlower.LocalScript', Line 88
17:38:34.702 - Stack End
How do I fix this?