I have tried watching so many tutorials but none of them seem to help here is my script:

script.Parent.Touched:Connect(function(hit)
	local mom = game.ReplicatedStorage.Mom:Clone()
	mom.Parent = game.Workspace
	
	if hit.Parent:FindFirstChild("Humanoid") then
		local place = hit.Parent.PrimaryPart

		mom.Humanoid:MoveTo(place.Position - Vector3.new(4, 0, 0))
	end
end)

1 comment

0

At line 06, you may change "PrimaryPart" to "HumanoidRootPart". I Hope it help!