Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local parts={
- }
- local Instance={
- new=function(a)
- if a=="Part" then
- local part={
- CFrame={
- X=0,
- Y=0,
- Z=0,
- R00=1,
- R01=0,
- R02=0,
- R10=1,
- R11=0,
- R12=0,
- R20=1,
- R21=0,
- R22=0
- },
- Transparency=0,
- Anchored=false,
- Locked=false,
- CanCollide=false,
- Size={
- X=4,
- Y=1,
- Z=2
- },
- BrickColor="Silver",
- Material="Norm"
- }
- return part
- end
- end
- }
- local p0=Instance.new("Part")
- p0.CFrame.X=5
- p0.CFrame.Y=3
- p0.CFrame.Z=2
- local p1=Instance.new("Part")
- p1.CFrame.X=33
- p1.CFrame.Y=2
- p1.CFrame.Z=21
- local p2=Instance.new("Part")
- p2.CFrame.X=9
- p2.CFrame.Y=33
- p2.CFrame.Z=-23
- local t=0
- local math={
- circle=function(p,radius)
- local g=math.sin(p)*radius;
- local t=math.cos(p)*radius;
- return g,t
- end,
- bezier=function(p0,p1,p2,t)
- local pFinalX=math.pow(1-t,2)*p0.X+(1-t)*2*t*p1.X+t*t*p2.X;
- local pFinalY=math.pow(1-t,2)*p0.Y+(1-t)*2*t*p1.Y+t*t*p2.Y;
- local pFinalZ=math.pow(1-t,2)*p0.Z+(1-t)*2*t*p1.Z+t*t*p2.Z;
- return pFinalX,pFinalY,pFinalZ
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment