I'm working with ragdolls for this script, I looked for ways to figure out how to fix this but, nothing. Here is the script.
GamePassId = 4208501
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function()
if game:GetService("GamePassService"):PlayerHasPass(Player, GamePassId) then
x = game.ServerStorage.Hat:Clone() --Save your "Swords" there <---
x.Parent = Player.Character
m = Instance.new("Motor6D", Player.Character.Head)
m.Part0 = Player.Character.Head
m.Part1 = x
m.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) --Play the Position and Rotation of the Part
end
end)
end)

2 comments
GamePassService is outdated.
https://www.robloxdev.com/api-reference/class/MarketplaceService