Hi There Scripters,
I’ve been trying to make it so you can pick up an orb through a Prompt, which then reparents it to the Player’s Backpack, but I’m stuck on this issue where the orb just disappears when reparented.
The Orb Doesn’t get destroyed, but just disappears which is really strange,
I think it’s a problem with the Backpack because when I printed the Backpack’s Parent it Came back with nil
Here is my Script:
--------------------------------------------------<<< VARIABLES
local Player = game.Players.LocalPlayer
local Backpack: Backpack = Player:WaitForChild("Backpack")
local OrbTool = workspace:WaitForChild("Orb")
OrbTool:WaitForChild("Handle"):WaitForChild("TouchInterest"):Destroy()
local OrbPrompt = OrbTool:WaitForChild("ProximityPrompt").
--------------------------------------------------<<< FUNTIONALITY
OrbPrompt.Triggered:Connect(function()
OrbTool.Parent = Backpack
OrbTool.Orb.ProximityPrompt.Enabled = false
OrbTool.Handle.Anchored = false
OrbTool.Orb.Anchored = false
end)
Thanks a lot for your help!