Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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!

0
just use starter character method, why reinvent the wheel? User#24403 69 — 5y
0
Because the starter character method is broke HomieFirePGN 137 — 5y
0
broken* HomieFirePGN 137 — 5y
0
I just changed the model to fix it lmao HomieFirePGN 137 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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!

0
Sorry, it didn't work. THanks for helping! HomieFirePGN 137 — 5y
0
is the change made under "game.ReplicatedStorage.Thief.Bandito"? NickAtNick 163 — 5y
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 NickAtNick 163 — 5y
0
K ill try HomieFirePGN 137 — 5y
View all comments (3 more)
0
so, did it work? NickAtNick 163 — 5y
0
sorry forgot to try ill try it now HomieFirePGN 137 — 5y
0
nope, didnt work HomieFirePGN 137 — 5y
Ad

Answer this question