RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a local script inside a text button that enables and disables default roblox backpack"
-- local script inside a text button local button = script.Parent local Players = game:GetService('Players') local localPlayer = Players.LocalPlayer local backpackEnabled = true local function toggleBackpack() if backpackEnabled then localPlayer.Backpack.Disabled = true button.Text = 'Enable Backpack' else localPlayer.Backpack.Disabled = false button.Text = 'Disable Backpack' end backpackEnabled = not backpackEnabled end button.MouseButton1Click:Connect(toggleBackpack)