I want to tween a tool, but to do so, I have to put it into the workspace. The problem is, as soon as I parent it to the workspace, it goes back into the players inventory. I couldn’t disable the player being able to pick it up, because I want the player to be able to pick it up, just not when it’s being tweened. How do I fix this?
while tweening, remove the TouchInterest from the handle.
local Workspace = workspace
local function OnWorkspaceChildAdded(Child) --Detects dropped tools.
if Child:IsA("BackpackItem") then
Child.Handle.CanTouch = false --Can't pick up tool.
task.wait(5)
Child.Handle.CanTouch = true --Can pick up tool.
end
end
Workspace.ChildAdded:Connect(OnWorkspaceChildAdded)
4 Likes