game.Players.PlayerAdded:Connect(function(player))
player.CharacterAdded:Connect(function(character))
local backpack = [Your backpack]:Clone()
backpack.Parent = character
backpack.PrimaryPart.CFrame = character.UpperTorso.CFrame
local weld = Instance.new("Weld")
weld.Parent = character.UpperTorso
weld.Part0 = character.UpperTorso
weld.Part1 = backpack.PrimaryPart
end)
end)
(untested code, hope it works for you)
This code detects when a player joins the game, then when a player’s character loads/respawns and welds the backpack to the torso (for r6 just change UpperTorso to Torso)
Also make a part on the backpack that is set as the primary part and is where the player’s torso will be
I made a small test model and made one of the parts primary, i changed the [your part] to the directory to the grouped model but it doesnt come on the player
Install Rig Edit Lite - RigEdit Lite - Roblox
Then go into roblox studio - click plugins at the top and select rig edit
Then click the primary part of the backpack, and then select all other parts of the backpack, making sure that the primary part is the first one you selected
Then you click “Create Welds” in the rig edit menu
Add your script inside the player character(by parenting it inside StarterPlayer.StarterCharacterScripts), it will run every time the character respawns, and to retrieve their player/character/humanoid all you have to do is:
--Script/LocalScript under game.StarterPlayer.StarterCharacterScripts
local character = script.Parent --the script runs inside the character
local player = game.Players:GetPlayerFromCharacter(character)
local humanoid = character:WaitForChild("Humanoid")
--use the player/character/humanoid to run your backpack code
Even if the parts are welded together, it doesnt “show up” on my character, is this script supposed to go in a server side script in workspace or does it have a special location