So i want to achieve a moving stage light
The issue is that it’s not moving at all or working
at first it couldn’t get the position of the model due to it being in a model so i have tried to get the children of the model however it won’t work still
local Tween = game:GetService("TweenService")
local light = game.Workspace.StageLight
local start = light.Head
local PartToMove = light:WaitForChild("Move")
local tweeninfo = TweenInfo.new(
0.5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
3,
true,
1
)
function EndProp()
local ends = light.Head2:GetChildren()
for i = 1, #ends do
local child = ends[i]
if child:IsA("BasePart") then
Position = child.Position
end
end
end
local TweenPlay = Tween:Create(PartToMove,tweeninfo,EndProp)
while true do
TweenPlay:Play()
wait(6)
end