I tried to script it like this, but it didn't work:
local Player = game.Players.LocalPlayer local Accesory = script.Parent local Character = Player.Character
Accesory.Parent = Character
I tried to script it like this, but it didn't work:
local Player = game.Players.LocalPlayer local Accesory = script.Parent local Character = Player.Character
Accesory.Parent = Character
Check when a player joined, and clone the model to their character. Do something like this:
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local Accesory = --put the accesory here, I recommend having it on ServerStorage and
cloning it from there
Accesory.Parent = char
end)
end)
This functions check when a player joined, and after when a character spawned (Works for respawn) And it clones the accesory into the character.
This haves to be a Server Script inside of ServerScriptService ; And put the accesory inside of server storage. In the local variable, do this: local Accesory = game:GetService("ServerStorage").AccesoryName
Hope I helped. If it works accept my answer please ;)
This discussion is preserved as it was. New answers, comments, and votes are closed.
7 comments
Thank you so much! It worked.
then can you accept my answer please?
How do I accept? I'm new.
There should be a button around my answer. Try to search it because accepting my asnwer really helps me.
Oh, I accepted it.
Thank you!
You're welcome!