Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to make a tool teleporter? [closed]

Asked by 5 years ago

Hello. I am trying to make a script that will be put in a block, and when a tool touches that block, it will be teleported to another block. This is part of a luggage system I am making at my airport. I have a script to drop the tool, but I need one to teleport it from the check in area to the luggage claim to make it seem realistic.

0
Requests are not allowed. Please view the Scripting Helpers guidelines for more information. DeceptiveCaster 3761 — 5y

Closed as Not Constructive by DinozCreates, DeceptiveCaster, WideSteal321, and ScriptGuider

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 5 years ago

Well, since you already have a way to drop the tool, i'll just list a line of code that you would use to move it to the new location

game.Workspace.Tool.Handle.CFrame = game.Workspace.LuggageClaim.Spawn.CFrame + Vector3.new(0, 3, 0)

This line assumes that when the tool is dropped, you can make, or it is defaulted to having, its parent become game.Workspace. The second part of the code chooses the new location for the tool to move to. In this case, it takes it to the CFrame of the Part "Spawn" and moves it up by 3 studs. Note you can't choose the tool's cframe since its position is based on the "handle" Part inside it.

0
You answered a request question. Shame on you. DeceptiveCaster 3761 — 5y
0
Shame... WideSteal321 773 — 5y
Ad