Hat not being placed properly

I suggest lowering the Y offset until you reach the proper direction for the suit.

I just suggested that, silly. :rofl:

E, guess you beat me to the typing challenge eh?

Mwahahahah. Good game, sir. o7

Can you tell me where I can change the offset? Sorry for asking, I’m kinda new to scripting so I don’t know a lot.

hat.Handle.SpecialMesh.Offset = Vector3.new(0,-2,0)

	for _, accessory in pairs(script.Parent.Humanoid:GetAccessories()) do 
		accessory:Destroy();
	end
	local BananaBod = game.Lighting.BananaBod
	local array_holder = {game.Lighting.BananaBod:Clone(), game.Lighting.MonkeyHat:Clone();}
	HatGive(array_holder)
	local grab = game.Lighting.Grab;
	local copy = grab:Clone()
	copy.Parent = game.Players:GetPlayerFromCharacter(script.Parent).Backpack
	local trans = game.Lighting.Transfur;
	local copy = trans:Clone()
	copy.Parent = game.Players:GetPlayerFromCharacter(script.Parent).Backpack
	script.Parent.Head.Color = script.Color.Value;
	BananaBod.Handle.SpecialMesh.OffSet = Vector3.new(0,-2,0)

I tried this but it didn’t work

Unless I did it in the wrong place.

Where is there a collin here? xD. Also, what do error logs say? (press f9 to see them)

THis is the error message

Lowercase S. Do that then I have solved your woes!

Let me know if it works please! <3 I’ve only solved one dev forum thing and it was my own problem. :flushed:

It sadly did not work. Maybe it’s just that the offset is too low. I’ll keep trying using your way.

What does the error say? Did you change OffSet to Offset?

There is a property on attachments called AttachmentPos. You can change this in a script or manually. Try using

BananaBod.AttachmentPos = Vector3.new(0, 1, 0)

There is no error. Now I am confused lol.

Play with the values in explorer in test mode then when you find the one you like, manually set it in the script.

The test dummy was the problem… I removed it as StarterCharacter and just wore a different avatar. Turns out that it actually works and the dummy was being, well… a dummy.

Thank you for all your help guys <3

1 Like

You can just alter the humanoiddescription i believe.