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.
COMMUNITY QUESTION
How to make a tool teleporter?
1 answer
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.
2 comments
0
You answered a request question. Shame on you.
0
Shame...
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Requests are not allowed. Please view the Scripting Helpers guidelines for more information.