How would I make a player backpack? with a capacity count?

Oh okay

(char char char char char)

1 Like

After your backpack is ready for scripting, we can do a test using this serverscript:

local Players = game:GetService('Players')
local Backpack = game.ReplicatedStorage.Backpack --// link the backpack

Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local HumanoidRootPart = Character:WaitForChild('HumanoidRootPart')
        local NewBackpack = Backpack:Clone()
        local Weld = Instance.new('WeldConstraint', NewBackpack)

        NewBackpack.Parent = Character
        NewBackpack:SetPrimaryPartCFrame(HumanoidRootPart.CFrame)
        Weld.Part0 = NewBackpack.PrimaryPart
        Weld.Part1 = HumanoidRootPart
    end)
end)

The Primary part of what?


1 Like

The primary part of the backpack

Does the green block need to be the PrimaryPart of the backpack?

1 Like

Yup, but make it invisible when you actually publish the game, I don’t think people want to see a green block stuck to their body :smiley:

1 Like