I making a stage with lighting but I want to move the light beam to different angles. I'm doing it by moving the attachment to the location I want the light beam to face, but models have the same name. So how can I do it?
This script currently works for only one of the lights
local Epic = script.Parent.ClickDetector
function onClick() for i,v in pairs (game.Workspace.groundLights:GetChildren()) do if v.Name == "ParCan" then
workspace.groundLights.Head.B.Attachmentend.Position = Vector3.new(0,0,0)
end
end
end Epic.MouseClick:connect(onClick)

1 comment
Attachments' possitions are relative to the part it is inside of. If you want it to go somewhere that isn't relative, you can use WorldPosition instead, I think..