Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SOLVED]How do I fix my Bandito Accessory's position?

So I made a script so that it would change the character's appearance into a thief(I did not want to use the StarterPlayer method), here it is:

--Remove Accessories
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAppearanceLoaded:Connect(function(char)
		for i, v in pairs(char:GetChildren()) do
			if v:IsA("Accessory") then
				v:Destroy()
			end
		end
--Add Outfit
	wait(1)
	local bClone = game.ReplicatedStorage.Thief.Bandito:Clone()
	bClone.Parent = char
	local rBeanieClone = game.ReplicatedStorage.Thief["Robber Beanie"]:Clone()
	rBeanieClone.Parent = char
	local dFace = char.Head.face:Destroy()
	local nFaceClone = game.ReplicatedStorage.Thief.Head.face:Clone()
	nFaceClone.Parent = char.Head
	local dShirt = char.Shirt:Destroy()
	local nShirtClone = game.ReplicatedStorage.Thief.Shirt:Clone()
	nShirtClone.Parent = char
	local dPants = char.Pants:Destroy()
	local nPantsClone = game.ReplicatedStorage.Thief.Pants:Clone()
	nPantsClone.Parent = char
	end)
end)

There's just one problem: The 'Bandito' accessory is in the wrong position. Click here for the image. I tried to change its position to the correct position, but when I played it, I could not see the accessory at all! It had a random position. Here's a GIF of the Explorer. I hope someone can tell me what to add to the script to fix it!

4 comments

0

just use starter character method, why reinvent the wheel?

0

Because the starter character method is broke

0

broken*

0

I just changed the model to fix it lmao

1 answer

Okay, I made so many tests on positioning the hat. (I make no promises but..)

How about try changing the Accessory's "AttachmentPos" to 0, 0.35, 0 (Don't have to script it)

Hopefully it will works for you!

7 comments

0

Sorry, it didn't work. THanks for helping!

0

is the change made under "game.ReplicatedStorage.Thief.Bandito"?

0

If yes, maybe this'll do : local bClone = game.ReplicatedStorage.Thief.Bandito:Clone() bClone.AttachmentPos = Vector3.new(0, 0.35, 0) bClone.Parent = player.Character

0

K ill try

0

so, did it work?

0

sorry forgot to try ill try it now

0

nope, didnt work

This discussion is preserved as it was. New answers, comments, and votes are closed.