Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I teleport a whole model to a certain position?

I remember being able to do this, although I forgot. How do I teleport a model to another position?

2 answers

You can use :SetPrimaryPartCFrame(), you can easily make a CFrame from the other position using CFrame.new(newPosition)

Note: While SetPrimaryPartCFrame does it's job, after a while you can notice parts not being at the right offset anymore (However this does take a while). If you want to ignore this fact you can designate 1 part (for example the PrimaryPart) to be moved using it's own CFrame or position and welding all the parts in the model to the PrimaryPart. That can potentially solve the issues.

2 comments

0

Still having issues.

0

Still having some issues. Its not going to the new spot when its put into the workspace. It stays in the same spot it was in Server Storage.

This is my script:


wait(7)
local copy = game.ServerStorage.Nuke:Clone()
copy.Parent = game.Workspace
copy:SetPrimaryPartCFrame(script.Parent.Position)

This discussion is preserved as it was. New answers, comments, and votes are closed.