Basically im trying to make a tutorial for my game ive got some of it covered but im trying to make arrows pointing to a npc named "Master Baker" and im trying to get a script to place one end of the beam into the character and the other to the npc and here is the script ive got:
local EVENT = game.ReplicatedStorage.Tutorial
EVENT.OnServerEvent:Connect(function()
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connected(function(char)
local ATT1 = game.ReplicatedStorage:WaitForChild("TUTP") --a model which contains attachment0
ATT1.Parent = plr.char:WaitForChild('LowerTorso') -- im trying to place the model into the torso
ATT1.CFrame = char:WaitForChild('LowerTorso').CFrame
local Weld = Instance.new('ManualWeld')
Weld.Part0 = ATT1
Weld.Part1 = char:WaitForChild('LowerTorso')
Weld.C0 = ATT1.CFrame:inverse() * char:WaitForChild('LowerTorso').CFrame
Weld.Parent = char:WaitForChild('LowerTorso')
local beam = game.ReplicatedStorage.Beam:Clone()
beam.Parent = plr.char:WaitForChild('LowerTorso')
beam.Attachment1 = ATT1.Attachment0
end)
end)
end)
after all this i got nothing, not even a warning or error so is there a way this can be fixed or am i missing a step which i forgot like giving a position to where the beam has to be placed?
(also wanted to point out that i attachment1 is placed in the torso of the npc Master Baker.)

2 comments
A beam is connected to attachments. If you want your beam to be visible you need to place an attachment in both players, then set the attachments in the beams property.
i posted a new script that ive worked up but it still doesnt work so if anyone can tweak this and fix it that would be awsome!