I have already made a script about it
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)
The script is about the player have already a disabled backpack, when the player touch a part called "BackPack?" the script make the character's backpack enbled again, anybody help me with this?
Server:
local re = Instance.new("RemoteEvent", game.ReplicatedStorage) re.Name = "Backpack" local part = workspace:FindFirstChild("Part") if part then part.Touched:connect(function(touch) local player = game.Players:FindFirstChild(touch.Parent.Name) if player then re:FireClient(true) end end) end
Client:
game:service'StarterGui':SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) local re = game.ReplicatedStorage:WaitForChild("Backpack") re.OnClientEvent:connect(function(bool) game:service'StarterGui':SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, bool) end)