How to make a part when touched make the backpack enabled?
1 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false ) |
2 | local Part = game.Workspace [ "Backpack?" ] |
3 | Part.Touched:Connect( function (Hit) |
4 | local player = game.Players:GetPlayerFromCharacter(Hit.Part) |
6 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true ) |
**** So that scripts that i wanted to try. I'll explain; first it makes the backpack disabled. then when a player touch a part called "BackPack?" it makes the backpack enabled again.. I couldn't continue the script when the player touch another part for example called "Return BackPack" It makes it disabled! Please I need this so badly. Thanks for reading/helping !