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?
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)
Prob something like this?
local Epic = script.Parent.ClickDetector function onClick() for i,v in pairs (game.Workspace.groundLights:GetDescendants()) do if v.Name == "ParCan" then v.FindFirstChild:("Attachmentend").Position = Vector3.new(10,0,0) end end end Epic.MouseClick:connect(onClick)
tbh idk what ParCan is , u might need to remove the entire if v.Name == "ParCan" then