game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) hides the backpack. Replace the false with true to set it back on. Do note that it can only be run locally.
This will keep it on false initially when a player joins, the tools will be hidden.
Add another Local Script inside of the “Deploy/Play” button or TextButton Gui, add an event that fires when the button is pressed that will replace false with true:
script.Parent.MouseButton1Click:Connect(function() --Parent is the TextButton here
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
end)
So when a player clicks on the “Deploy/Play” button, the tools will appear.
And you can also add another code to destroy the first LocalScript so it won’t hide the tools again when a player resets (if the player is not required to press the Play button again).
script.Parent.Parent.LocalScript:Destroy() -- LocalScript is the first script with one line of code