Why this isn't working?

  1. What do you want to achieve? Fix my script.

  2. What is the issue? Im trying to put an beam effect on my Character, but the beam spawns in a random part of the map.

  3. What solutions have you tried so far? I tried to use attachments but din’t worked.

My script:

event.OnServerEvent:Connect(function(player)
	local char = player.Character
local beam = script.beam:Clone()
	
	beam.Parent = char["HumanoidRootPart"]
	
	local A0 = Instance.new("Attachment",char["HumanoidRootPart"])
	A0.Name = "att0"

end)

Why this inst working?

I believe you have to attach another attachment to another place for the beam to travel to because it will render a texture between 2 attachments.

You haven’t assigned the attachments to the beam or is that done automatically via another script?