How could I grab a part/effect from the server storage and weld it onto a players head?

So, I’m creating a game where admins would have a crown made on their head. I have a script that creates a new instance but how would I grab a model from the server storage?

Here is the instance.new script.

game.Players.PlayerAdded:connect(function(plr)
  if plr.Name == "slenderW0lf_YT" then
    plr.CharacterAdded:connect(function(chr)
      local pe = Instance.new("Fire")
      pe.Parent = chr.Head
    end)
  end
end)
1 Like

I’m not really sure what you mean but all you have to do to bring an object from server storage using

part.Parent = workspace

1 Like

You can have a table and then use table.find() if there are multiple admins. Also for you to grab a model from server storage you’d need to clone it and then parent it to the head, but you’d also need to use weld constraint if i’m not mistaken and you would need to have a main part inside of a model and etc.

1 Like

What i’m trying to say is how would I get a model from the server storage and clone it into the workspace on a specific players head?

1 Like

local partClone = game.ServerStorage.Part:Clone()

partClone.Parent = workspace

Just like that. Is this what you mean, because this clones the object and puts it in workspace?

1 Like

He’s trying to clone it to the player’s head.

1 Like

I’m trying to clone it to a players head.

Read my post above ^^^ @snobW0lf

Oh, then all you have to do is weld it to the player by using
local partClone = game.ServerStorage.Part:Clone()

partClone.Parent = workspace.slenderWolf_YT.Head

local weld = Instance.new(“Weld”, workspace.slenderWolf_YT.Head)
weld.Part1 = partClone
weld.Part0 = workspace.slenderWolf_YT.Head

–then set the offset

I think your missing the part about how he should handle stuff because he’s using a model if you don’t know.

I am using a model. Or should I use a union?

Unions would be better if its one solid color and material. Not to mention it would be much easier to weld it.

Then I would need to use a model.

Read my post above ^^^. Also for the main part inside the model you can weld that to the player’s head you know and I’m pretty sure you are able to change the position of the main part if im correct.

Is the model welded? If it is this should work. Yes what Xemptia said is correct, find a central part in the model and weld that.

What do you mean by welded, do you mean by having weld’s in the parts, or?

A weld constraint is actually an object. WeldConstraint | Documentation - Roblox Creator Hub

How would I attach more parts than two with a weld constraint?

Weld constraints are better because it welds in the place that its in and all parts don’t get welded at the center.

Okay in the model have the center part then use a weld constraint to connect it to the other parts of the model which you can then parent the parts welded to the center to be under the center. Then you can clone the main part and then weld that main part to the player’s head or you can just clone the model and weld the main part. You should use a weld constraint for welding ^.