I am making my game but when i clone this part it dosent move forward
This is the code:
local SoulSnatcher = game.ServerStorage:WaitForChild("SoulServStorage"):WaitForChild("SoulSnatcher")
local char = player.Character
local newSoulSnatcher = SoulSnatcher:Clone()
local targetPosition = char.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
newSoulSnatcher.Position = targetPosition
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(5000, 5000, 5000)
local direction = (cframe.p - newSoulSnatcher.Position).Unit
bodyVelocity.Velocity = direction * 500
bodyVelocity.Parent = newSoulSnatcher
newSoulSnatcher.Parent = workspace
local bodyPosition = Instance.new("BodyPosition", newSoulSnatcher)
bodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyPosition.D = 10
bodyPosition.Position = targetPosition