Accessory is invisible or it's not working

Hi.
I’ve been stuck on this error since a while (3 days)
Basically, my mesh doesn’t works.
I am using OOP for character creation system.

Read all please.

Events['Set'].OnServerEvent:Connect(function(Player,Color,Face,MeshId,Offset,Texture,Amesh,Atexture,Aoffset,Shirt,Pants)
	if (Methods[Player.UserId]) then
		local Character = Methods[Player.UserId]
		Character:SetColor(Color)
		Character:SetFace(Face)
		Character:SetHair(MeshId,tostring(Offset),Texture)
		Character:SetPants(Pants)
		Character:SetShirt(Shirt)
		print(Amesh,Aoffset,Atexture)
		Character:SetAcc(Amesh,Aoffset,Atexture)
		local dat = Methods[Player.UserId]:ReturnData()
		
	local t = 0
	
	repeat
		local result = try(dat,Player.UserId)
		t +=1
		warn(result)
		wait(1)
	until t > 3 or result
	end
end)

I guess you understand yourself.
The trouble is on Character:SetAcc(Amesh,Aoffset,Atexture)
It doesn’t works.
When I do print() the offset,id and texture, it works perfect.
output: image

Code for :SetAcc()

function methods:SetAcc(Id, Offset,Texture)
	print('Run')
	local VectorOff = Offset:split(',')
	local Finished = Vector3.new(VectorOff[1], VectorOff[2], VectorOff[3])
	self.AccessoryOffset = Offset
	self.AccessoryTexture = Texture
	self.AccessoryId = Id
	self.Player.Character.Accessory.Handle.MeshPart.MeshId = Id
	self.Player.Character.Accessory.Handle.MeshPart.TextureId = Texture
	self.Player.Character.Accessory.Handle.MeshPart.Offset = Finished
end

image
The function prints ‘Run’ correctly.

But than this happens:

It’s meant to save.
Which it does.
It only doesn’t saves ‘AccessoryId’
I just give up, that’s why I am here.

Here you go:
image

It just doesn’t works!!! AAA

1 Like

NVM, just realized it was wrong spelled on of the table index

1 Like