Parent cannot be assigned to

In my code I put this

local bullet = game.ServerStorage.Part:Clone()
bullet:FindFirstChild("BodyVelocity").Velocity = direction
bullet = workspace:WaitForChild(player.Name).Head.Position
bullet.Parent = workspace

I have checked around the developer hub and can’t find anyone with the same issue that I am having.

1 Like

You forgot bullet.Position so you are assigning bullet to a vector 3 value which cannot have a parent.

bullet.Position = workspace:WaitForChild(player.Name).Head.Position
bullet.Parent = workspace

Thanks it is always small mistakes like that that mess me up

1 Like