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.
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.
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?