A very strange Roblox bug with shoulder accessories

Hello everyone, for some reason that I don’t understand, Roblox changed the position of the model to the shoulder after I uploaded it as an ugc. The screenshots from Roblox Studio clearly show that the model is positioned correctly on the shoulder, but after uploading it as an ugc in the game, it appears to be floating in the air. Does anyone know how to fix this issue?





3 Likes

Sometimes positioning the mesh in studio bugs out, so you’ll have to check how it looks in game before uploading.

Place this in serverscriptservice
(Test it in studio then click the dummy that wears the Accessory.)

local dummy = script.Parent
local dummyHumanoid = dummy:FindFirstChildOfClass(“Humanoid”)
local root = dummy:FindFirstChild(“HumanoidRootPart”) or dummy:FindFirstChild(“Head”)
if not dummyHumanoid or not root then return end

local click = Instance.new(“ClickDetector”)
click.MaxActivationDistance = 12
click.Parent = root

local function giveAccessories(player)

  • local character = player.Character*

  • if not character then return end*

  • local pHumanoid = character:FindFirstChildOfClass(“Humanoid”)*

  • if not pHumanoid then return end*

  • for _, acc in pairs(character:GetChildren()) do*

  •   if acc:IsA("Accessory") then*
    
  •   	acc:Destroy()*
    
  •   end*
    
  • end*

  • for _, acc in pairs(dummy:GetChildren()) do*

  •   if acc:IsA("Accessory") then*
    
  •   	local cloned = acc:Clone()*
    
  •   	cloned.Parent = character*
    
  •   	pHumanoid:AddAccessory(cloned)*
    
  •   end*
    
  • end*
    end

click.MouseClick:Connect(function(player)

  • giveAccessories(player)*
    end)

Unfortunately theres nothing you can do right now to fix this ugc. Make sure to do this next time :))

1 Like

I created a script in the ServerScript Service, but nothing changed. Can you tell me more about it please:) ?

2 Likes

after placing the script in the serverscriptservice playtest the game. go to the rig that has the UGC. the dummy rig should be clickable so click it then the ugc should be worn. let me know

1 Like