Im trying to make a tool that will place a head and give it a custom name. Im not sure the best way to do this. could anyone help me please?

I’m trying to make a tool for a friend’s game, but I have no idea where to start. all I need is for it to be able to place a head with a name determined by the player. Does anyone have any idea how I can do this?

1 Like

how are you trying to do this? is it done via gui?

yes, the name would be done by a gui.

ok so if you did it with a gui button you should start with this

script.Parent.MouseButton1Click:Connect(function()
      local Model = Instance.new("Model", workspace)
      local Humanoid = Instance.new("Humanoid")
      local Head = Instance.new("Part")

      Humanoid.Parent = Model
      Head.Parent = Model
      Head.Name = "test"
end)

it should be a serverscript inside the button
let me know if that works

thank you! im going to try it later, I’ll let you know if it works or not.

I’ve been having some trouble implementing it, but it may be my experience with this type of scripting being limited. I’m going to keep trying it, though.

unfortunately I haven’t been able to get it to work.

apologies for not responding, where is the script and what happens when it runs

No worries at all, I was also unable to respond for a while. I put it in multiple places to try and get it to work, from inside the button to inside the tool, anything I could think of. I had everything in StarterPack. Absolutely nothing happens.

1 Like

the script doesnt give you any errors?