Making a rig/block that comes to you

You can use tween position for this

  1. weld all parts of the model to a primary part of the model
  2. tween the part’s position over to a position above the player’s dead body

code would look like this:

local spaceShip = theSpaceShip model in workspace

function moveSpaceShip(endPosition)
	local tweenTime = 8
	local tween = game:GetService("TweenService"):Create(part, TweenInfo.new(tweenTime), {Position = endPosition})
	tween:Play()
	tween.Completed:Wait() -- wait for the spaceship to be done moving before continuing
end

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		character.Died:Connect(function()
			local endPosition = character.HumanoidRootPart.Position + Vector3.new(0,10,0)
			moveSpaceShip(endPosition)
		end)
	end)
end)
1 Like