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

How to teleport a part forward player?

I have an Model, for example it named "Object".

So I need to teleport it forward player and he must look in the direction where the player is looking.

You can use anything like PrimaryPart to move it.

Please, if you can, explain how you doing this.

This Model in workspace.

Have any ideas how to make it? I will really appreciate it. Thanks you.

function TeleportPart(player)

	character = player.Character or player.CharacterAdded:Wait()

	Object = game.Workspace.Object
	
	PrimaryPart = Object.PrimaryPart
end

2 comments

0

Maybe using CFrame

0

Maybe explain how to use it right?

1 answer

You can use lookVector

Part.CFrame = Character.HumanoidRootPart.CFrame + Player.HumanoidRootPart.CFrame.lookVector*2

4 comments

0

Uhh... What? Player.HumanoidRootPart? And I can't use CFrame on a Model...

0

Uhh... What? Player.HumanoidRootPart? And I can't use CFrame on a Model...

0

Damn, at least read my details, not just the title...

0

How can you use lookVECTOR on a CFrame?

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