I have a script that creates a new part below a certain part(Lets call it the origin), I noticed that if the Y value is smaller such as 5 the new part is much farther away from the origin. bigger the number, closer it is! So why is this? Why is the part farther away when the number is smaller?
It would help if you shared the script!
1 Like
Oh yeah mb
weld.C1 = CFrame.new(Origin) * CFrame.new(x * spaceApart,-Range,y * spaceApart)
range is what makes it go down
Do welds work differently? Just realizing its a weld that Iām changing. Fun!
1 Like
weld.C1 = CFrame.new(Origin) * CFrame.new(x * spaceApart,-Range, y * spaceApart)
Is that y
in the third argument of the CFrame
constructor supposed to be a z
by chance? It seems odd to use y * spaceApart
instead of z * spaceApart
.
1 Like
I never noticed that. Let me go try something out rq
Ok so this is what Y is:
local y = math.sin(math.rad(t) * (rotate / (amount / amount)))
All this math just rotates it around a certain part. Idk I think I used Y instead of Z when creating the variable