Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Keep player's tools on death?

Asked by 3 years ago

I want to save whatever tool I'm holding to StarterGear, so I respawn with them, but it doesn't seem to work. I have this in tool's script:

tool.Equipped:Connect(function()
    local player = players:GetPlayerFromCharacter(tool.Parent)
    local saveTool = tool:Clone()
    player.StarterGear:ClearAllChildren()
    saveTool.Parent = player.StarterGear
end)

1 answer

Log in to vote
0
Answered by 3 years ago

Did pretty much the same script, but it's now activated right after I buy the tool and now it works.

Ad

Answer this question