Object isnt attaching to players hand but on other objects attach

  1. What do you want to achieve? I want to make a glove

  2. What is the issue? I used Humanoid:AddAccessory but it didnt work. And this is the model on explorer.(So you can check missing things)
    RYFGMT
    And here is the script:
    (On ServerScriptService and i got this script from a mini tutorial)

local test = game:GetService("ServerStorage").RYFG

workspace:WaitForChild("YellowFireTheCoder").Humanoid:AddAccessory(test:Clone())
 
  1. What solutions have you tried so far? I used Humanoid:AddAccessory but it didnt work.

I made some boots using this script:

Boots

game.Players.PlayerAdded:Connect(function(player)
	 player.CharacterAdded:Connect(function(character)
		
		local part = game.ReplicatedStorage.Boot:Clone()
		part.Parent = character	 
		
		local Weld = Instance.new("Weld", part)
		Weld.Name = "Weld"
		Weld.Part0 = part
		Weld.Part1 = character["Right Leg"]
		
		local part2 = game.ReplicatedStorage.Boot2:Clone()
		part2.Parent = character	 
		
		local Weld = Instance.new("Weld", part2)
		Weld.Name = "Weld"
		Weld.Part0 = part2
		Weld.Part1 = character["Left Leg"]
		
		local OB = game.ReplicatedStorage.OuterBoot:Clone()
		OB.Parent = character	 
		
		local Weld = Instance.new("Weld", OB)
		Weld.Name = "Weld"
		Weld.Part0 = OB
		Weld.Part1 = character["Right Leg"]
		
		local OB2 = game.ReplicatedStorage.OuterBoot2:Clone()
		OB2.Parent = character	 
		
		local Weld = Instance.new("Weld", OB2)
		Weld.Name = "Weld"
		Weld.Part0 = OB2
		Weld.Part1 = character["Left Leg"]
	end)
end)

You could probably change it so it welds to the players arms instead.

where did you put the script in? StarterPack or in accessory or other?

I put it in serverscript service, part1, part2, Outerboot and OuterBoot2 are just parts, not accessories.

1 Like

What is OB? I think it is primary part, am i right?
Edit: Didnt work so i wrote this script:

game.Players.PlayerAdded:Connect(function(plr)
	 plr.CharacterAdded:Connect(function(char)
		local r = game.ServerStorage.RYF
		local l = game.ServerStorage.LYF
		char.Humanoid:AddAccessory(r:Clone())
		char.Humanoid:AddAccessory(l:Clone())

	end)
end)
 

Ob means outerboot it is those black lines that go around the white part.

1 Like

You are using “Weld”, and with those you need to specify the offset of the parts. Instead, use “WeldConstraint”, which will weld the two parts in their current positions.

Also, here is some more info if you don’t want to use welds at all.