So i am making game to try some ugcs ,
so i clone the ugc and make the parent to workspace still it saying it is worn by anthor player ?
here is the code ,
TryBtn.MouseButton1Click:Connect(function()
if not on then
on = true
local ClonedUGC = Ugc:Clone()
ClonedUGC.Parent = game.Workspace
Humanoid:AddAccessory(Ugc)
else
on = false
end
end)
You aren’t passing the clone, you’re passing the original
Here’s your updated code
TryBtn.MouseButton1Click:Connect(function()
if not on then
on = true
local ClonedUGC = Ugc:Clone()
ClonedUGC.Parent = game.Workspace
Humanoid:AddAccessory(ClonedUGC)
else
on = false
end
end)
I would 100% assume it has to be done on the server side, (havent really used accessories much myself, so its an honest guess)
You could possibly make use of remote events for that, if you need any help let me know :]
And id make sure your accessories parts aren’t anchored, i would check if the clone is being put inside of the player under workspace. Let me know how it all goes
yea i did try that and worked , ty man
here what i did , made a remote event
–
on the client side i made it so when the player click the button it fire an event to the server and than the server add the accesory to the player
simple as that