Why isn't these 3 for-loops inside of eachother working?
I am trying to get the change the values at the same time "smoothly" by using for-loops. The reason for this is because I have another script that checks when those values gets updated, and updated the camera angle for my custom camera.
My coding is as follows:
local Configuration = game.ReplicatedStorage:WaitForChild("Configuration")
local cameraConfig = Configuration:WaitForChild("Camera")
local cameraAngleX = cameraConfig:WaitForChild("CameraOffsetX")
local cameraAngleY = cameraConfig:WaitForChild("CameraOffsetY")
local cameraAngleZ = cameraConfig:WaitForChild("CameraOffsetZ")
--//Reset camera
for x = 10,90,1 do
for y = 10,120,1 do
for z = 10,0,-1 do
wait()
cameraAngleX = x
cameraAngleY = y
cameraAngleZ = z
end
end
end
Any help is greatly appreciated!

1 comment
Thank you so much! :3 This is exactly what I needed to know, and it works as a charm! :-)