Could someone give me a hand with this? How can I do operations with cframe to change the position and or the size of objects?
I already read the documentation and saw the posts in the forum and I still don’t understand how this works
-- Change camera position and size
local camera = workspace.CurrentCamera
camera.CFrame = camera.CFrame * CFrame.Angles(500,500,0)
camera.CFrame = camera.CFrame * CFrame.new(500,500,0)
camera.CFrame = camera.CFrame * CFrame.lookAt(3,3,3)
camera.CFrame = camera.CFrame * math.clamp(3,3,3)
-- Change position and size of part
local part = game.Workspace.Part
part.CFrame = part.CFrame * CFrame.Angles(500,500,0)
part.CFrame = part.CFrame * CFrame.new(500,500,0)
part.CFrame = part.CFrame * CFrame.lookAt(3,3,3)
part.CFrame = part.CFrame * math.clamp(3,3,3)
I would like to learn these that I have put in code, I would really appreciate it very much