#Trying to replace accessories

19 messages · Page 1 of 1 (latest)

covert lark
#

yeah basic scripting, a for i,v loop and you loop through the character's children and check if its an acessory

gleaming quail
#

game.Players.PlayerAdded:Connect(function(Player)

Player.CharacterAdded:Connect(function(Char)
    for i, v in pairs(Char:GetChildren()) do
        if v:IsA("Accessory") then
            v:Destroy()
        end
    end
    
    local BuilderHat = "YOUR WAY TO THE BUILDERHAT"
    BuilderHat:Clone().Parent = Char
end)

end)

alpine harbor
gleaming quail
#

and you can name the script whatever you want

alpine harbor
gleaming quail
#

i tried it and it removed every accessory from me

alpine harbor
#

I copy and pasted what you sent into a script in the ServerScripService. is there something im supposed to change?

gleaming quail
#

when youve got the script inside of the serverscript service yea

#

then you copy and paste the code i sent you

#

into the script

#

send me a ss of the script inside of the serverscript service

alpine harbor
#

hold on, i'll have to DM it to you.

proven ferryBOT
#

studio** You are now Level 1! **studio

covert lark
alpine harbor
last bolt
last bolt