What effects does multiplication,division (etc...) have on math.sin,math.cos and math.tan? May you please give me a list of effects on how these operators work on these trig functions.
**For example: **
print("Tehgeek's weird sinewave loaded...")
n = 0
spd = workspace.SpeedSine
tab = {}
position = workspace.SineStart.Position
xx = position.x
yy = position.y+10
zz = position.z
for i = 1, 20 do
p = Instance.new("Part")
p.Name = "BRICKSINE"
p.Size = Vector3.new(1,1,1)
p.Anchored = true
p.Parent = workspace
table.insert(tab,p)
end
while wait(0.1) do
if spd.Value ~= 0 then
n = n+1
div = n/spd.Value
for i = 1, 20 do
v = Vector3.new(xx,math.sin((i/2))*5+div+yy,i*2+zz)
tab[i].CFrame = CFrame.new(v)*CFrame.Angles(math.sin(i), 0, 0)
end
end
end
The last sections with the variable v confused me with the y slot where it has ... math.sin((i/2))*5+div
This part confuses me with the math? May someone give a thorough explanation.
Also- Funyun - your explanations confuse me alot. Last thing can someone explain the div variable and how speed even works out with this variable - > div = n/spd.Value

1 comment
I'm sorry Blockeus, but the whole script seems hard to follow. I haven't learned precalc like DigitalVeer suggested.