Question: How can I teleport all the items in my inventory to another location?
Issue: The script can teleport the actual item, but none of the item’s scripting is included. I cannot pick it up or do anything with it (even move it). I believe the item is anchored, but I don’t know how.
Solutions: I have attempted to try some coding including terms such as GetChildren, but I am a relatively inexperienced and novice scripter, so I’m really not sure how or if it is the right thing to do.
Hello! Any assistance I could get would be incredibly appreciated, thank you. This script was initially taken from a free teleportation pad model that allows you to use a proximity prompt to teleport yourself to another pad.
Note: The name of the tool in my inventory is “Gyoza,” a type of food.
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("BasePart") then
v.ProximityPrompt.Triggered:Connect(function(player)
player.Backpack.Gyoza.Parent = workspace
workspace.Gyoza:MoveTo(V.Destination.Value.Position)
end)
end
end
BONUS: Is there any way I could adapt this to work for all items in my inventory, even if they’re not all Goyzas.
Thank you!