AddAccessory Problem

Ok so i know this script should work, but i think what is happening is the Accessory is falling into the void, how would i prevent this, and if i am doing anything wrong, please let me know

script.Parent.MouseButton1Down:Connect(function()

local plr = game.Players.LocalPlayer

local char = plr.Character

local hum = char.Humanoid

game.ReplicatedStorage:WaitForChild('KarateVictory')

local k = game.ReplicatedStorage.KarateVictory

k.Parent = game.Workspace

game.Workspace:WaitForChild('KarateVictory')

hum:AddAccessory(game.Workspace.KarateVictory)

print('Working?')

end)
1 Like

Found a fix
I was using a local script
so basically I just did the remote event thing and it worked
the reason it wasnt working is because in a localscript it’s try to weld it to the player
but you can’t do that with a local script, only with a server script

3 Likes