This is a script that I have:
local player = game.Players.LocalPlayer
local character = player.CharacterAdded:wait() or workspace[player.Name]
spawn(function()
local part = character["Torso"]
local weld = workspace.Sword.Sheath.WeldMain
weld.Part0 = workspace.Sword.Sheath
weld.Part1 = character["Torso"]
weld.C0 = CFrame.new(0, -1, 0)
weld.C0 = CFrame.fromOrientation(-1.5, 0, -1)
end)
So basically, what I want is for a model to be welded onto a player's back the second the player joins.
The problem is, whenever I try it out on a server, it doesn't weld it onto the player's back.
I need help identifying the problem.

1 comment
Thanks for your answer!