game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) local Part = game.Workspace["Backpack?"] Part.Touched:Connect(function(Hit) local player = game.Players:GetPlayerFromCharacter(Hit.Part) if player then game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true) end end)
**** 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 !
I can't give you the complete code but I can give you the touched event
local backpack = script.Parent backpack.Touched:Connect(function(hit) local humRoot = hit.Parent:WaitForChild("HumanoidRootPart", 10) if humRoot then --Code end end)