How would I make if the visible property of the frame is set to visible == true then the tools change their parent or disappear from the player’s backpack, but if the property is set to visible == false then the tools are returning back in the player’s backpack?
if game.Starter["Your Screen Gui Name Here"]["Your Frame Name Here"].Visible == true then
local Clones = game.StarterPack["Your Tool Name"]
Clones:Clone().Parent = game.ReplicatedStorage
Clones:Destroy()
end
You can use :GetPropertyChangedSignal() to check the visibility of the Frame and :SetCoreGuiEnabled to enable/disable the backpack:
Frame:GetPropertyChangedSignal("Visible"):Connect(function()
if Frame.Visible == false then
game:GetService("StarterGui"):SetCoreGuiEnabled("Backpack", false)
game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):UnequipTools()
else
game:GetService("StarterGui"):SetCoreGuiEnabled("Backpack", true)
end
end)
On top of that you can add :UnequipTools to the humanoid to make them unequip everything.
His question was clear enough to be answered and they were already answering most of those recommended questions, just with a different format. You’re focusing on the wrong thing.
Besides, it is evident through a look at your profile that you’re only grinding for a post count while not contributing to anything, essentially trolling: