Can anyone explain to me why you would use those math functions, some games use them but I don't really understand why, thank you for answering my question if you do!

3 comments

0

if you use : "Part.CFrame = CFrame.new(0, (amplitude * math.sin(tick() * frequency)), 0)" you can make animations for things such as breathing but it has to be in a renderstepped loop

0

renderstepped loops are : game:GetService("RunService").RenderStepped:Connect(function() -- code(drop a line) end)

0

I dont understand how does it work like that? Like isnt math. sin and math.cos used to find like the missing side of a triangle, but what does that have to do with anything in roblox?