Dark_EccentricYT

Untitled

Jul 11th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.78 KB | None | 0 0
  1. me=game.Players.localPlayer;
  2. ms=me:getMouse'';
  3. cf,ca,r,mr,i,v3,bc,sin,cos,pi=CFrame.new,CFrame.Angles,math.rad,math.random,Instance.new,Vector3.new,BrickColor.new,math.sin,math.cos,math.pi;
  4. anim='Idle';
  5. Parts={};
  6. local char=me.Character;
  7. --char.Archivable=true;
  8. local lam=char['Left Arm'];
  9. local ram=char['Right Arm'];
  10. local llg=char['Left Leg'];
  11. local rlg=char['Right Leg'];
  12. local hed=char.Head;
  13. local tor=char.Torso;
  14. local hrp=char.HumanoidRootPart;
  15. local hum=char.Humanoid;
  16. cp=(function(par,size,mat,color,t)
  17. p=i('Part',par);
  18. p.formFactor=3;
  19. p.Size=size;
  20. p.Material=mat;
  21. p.CanCollide=false;
  22. p.TopSurface=0;
  23. p.BottomSurface=0;
  24. p.Transparency=t;
  25. p.BrickColor=bc(color);
  26. table.insert(Parts,p);
  27. return(p);
  28. end);
  29. cm=(function(par,type,scale)
  30. m=i('SpecialMesh',par);
  31. m.MeshType=type;
  32. m.Scale=scale;
  33. return(m);
  34. end);
  35. bm=(function(par,size)
  36. b=i('BlockMesh',par);
  37. b.Scale=size;
  38. return(b);
  39. end);
  40. weld=(function(par,p1,cf)
  41. w=i('Weld',par);
  42. w.Part0=par;
  43. w.Part1=p1;
  44. w.C0=cf or cf();
  45. return(w);
  46. end);
  47. sn=function(id,p,pi)
  48. s=Instance.new('Sound',p);
  49. s.SoundId='rbxassetid://'..id;
  50. s.Volume=5
  51. game:service'ContentProvider':preload(s.SoundId);
  52. s.Pitch=pi;
  53. s:play();
  54. end;
  55. function cycle(num)
  56. local section = num % 1 * 3;
  57. local secondary = 0.5 * math.pi * (section % 1);
  58. if section < 1 then
  59. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary);
  60. elseif section < 2 then
  61. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary);
  62. else
  63. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1;
  64. end
  65. end
  66. --[[
  67. spawn(function()
  68. while(coroutine.yield())do
  69. game.Lighting.TimeOfDay=17;
  70. game.Lighting.FogEnd=9999;
  71. game.Lighting.Outlines=true;
  72. game.Lighting.Ambient=Color3.new(0,0,0);
  73. game.Lighting.Brightness=5;
  74. end;
  75. end);
  76. ]]
  77.  
  78. tab={};
  79. function TweenCFrame(part,cframe,speed)
  80. local c0=part.CFrame
  81. Spawn(function()
  82. for i=-90,90,speed do
  83. local r=((math.sin(math.rad(i))+1)/2)
  84. local a=Vector3.new(getangles(c0)):lerp(Vector3.new(getangles(cframe)),r)
  85. part.CFrame=CFrame.new(c0.p:lerp(cframe.p,r))*CFrame.Angles(a.x,a.y,a.z)
  86. wait()
  87. end
  88. end)
  89. end;
  90. function getangles(cframe)
  91. local x,y,z,m00,m01,m02,m40,m11,m12,m20,m21,m22=cframe:components()
  92. local X=math.atan2(-m12,m22)
  93. local Y=math.asin(m02)
  94. local Z=math.atan2(-m01,m00) return X,Y,Z
  95. end;
  96. function changet(part)
  97. for t=0,1,.05 do
  98. part.Transparency=NumberSequence.new(t);
  99. wait();
  100. --print(t);
  101. end;
  102. for t=.9,1,.1 do
  103. part.Transparency=NumberSequence.new(t);
  104. end;
  105. end;
  106. function tsize(pt)
  107. for t=1,5,.1 do
  108. wait(.1);
  109. pt.Size=NumberSequence.new(t);
  110. end;
  111. end;
  112. xplode=function(p)
  113. main=cp(p,v3(10,.1,10),'Metal','White');
  114. main.CanCollide=false;
  115. main.Position=p.Position;
  116. end;
  117. function rayCast(par,startpos, Speed, Dmg)
  118. local rayPart = Instance.new("Part")
  119. rayPart.Name = "RayPart"
  120. rayPart.Anchored = true
  121. rayPart.Material='Neon';
  122. rayPart.CanCollide = false
  123. rayPart.Locked = true
  124. rayPart.FormFactor = 3;
  125. rayPart.BrickColor=BrickColor.new'Tr. Flu. Blue';
  126. rayPart.TopSurface = Enum.SurfaceType.Smooth
  127. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  128. rayPart.Size = Vector3.new(2,2,2);
  129. rayPart.Shape='Ball';
  130. fr=i'Fire';
  131. fr.Parent=rayPart;
  132. fr.Size=1;
  133. fr.Heat=1000;
  134. fr.SecondaryColor=bc'Light green (Mint)'.Color;
  135. fr.Color=bc'Tr. Flu. Blue'.Color;
  136. pt=Instance.new('ParticleEmitter',rayPart);
  137. pt.EmissionDirection='Top';
  138. pt.LightEmission=1;
  139. pt.Color=ColorSequence.new(Color3.new(1,1,1));
  140. pt.Size=NumberSequence.new(1,1);
  141. pt.Lifetime=NumberRange.new(20,20);
  142. pt.Rate=1000;
  143. pt.Speed=NumberRange.new(6,6)
  144. pt.VelocitySpread=10;
  145. pt.Texture='rbxassetid://175622422';
  146. pt.Rate=10000;
  147. coroutine.wrap(changet)(pt);
  148. coroutine.wrap(tsize)(pt);
  149. spawn(function()
  150. while(wait())do
  151. for e=2,.5,-.1 do
  152. wait();
  153. rayPart.Size=v3(e,e,e);
  154. end;
  155. for e=.5,2,.1 do
  156. wait();
  157. rayPart.Size=v3(e,e,e);
  158. end;
  159. end;
  160. end);
  161. local bulletposition = startpos.Position;
  162. rayPart.CFrame = startpos.CFrame
  163. local bulletvelocity = (Vector3.new(0,0,0))+( ms.Hit.p - bulletposition).unit*Speed
  164. local bulletlastposition = bulletposition
  165. coroutine.resume(coroutine.create(function()
  166. while true do
  167. local dt = wait(1/60);
  168. bulletlastposition = bulletposition
  169. bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81, 0)*dt)
  170. bulletposition = bulletposition + (bulletvelocity*dt)
  171. local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
  172. local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, { char, rayPart, workspace.currentCamera} )
  173. if (tor.Position - rayPart.Position).magnitude > 640.999 then
  174. spawn(function()
  175. for t=1,10 do wait();
  176. rayPart.Transparency=rayPart.Transparency+.25;
  177. end;
  178. rayPart:destroy();
  179. end);
  180. --//rayPart:Destroy();
  181. break
  182. end
  183. parts={};
  184. if hit then
  185. local damage = math.random(Dmg, Dmg+16);
  186. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  187. hit.Parent.Humanoid.WalkSpeed=6;
  188. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage;
  189.  
  190. end;
  191. if(hit:isA'BasePart'and hit~='Base'and hit.Name~='Base'and hit.Name~='Baseplate')then
  192. table.insert(parts,hit);
  193. wait();
  194. coroutine.wrap(function()
  195. for i,v in pairs(parts)do
  196. TweenCFrame(v,v.CFrame*CFrame.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  197. *CFrame.Angles(math.random(-40,40),math.random(-40,40),math.random(-40,40)),.4);
  198. end;
  199. end)();
  200. end;
  201. bulletposition = hitposition
  202. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  203. rayPart:Destroy()
  204. break
  205. end
  206. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0);
  207. rayPart.Parent = par;
  208. end
  209. end))
  210. end;
  211. function cycle(num)
  212. local section = num % 1 * 3;
  213. local secondary = 0.5 * math.pi * (section % 1);
  214. if section < 1 then
  215. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary);
  216. elseif section < 2 then
  217. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary);
  218. else
  219. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1;
  220. end
  221. end
  222. ---------------------------------------------------
  223. ypcall(function()char.Model:remove'';end);
  224. mdl=Instance.new('Model',char);
  225. mdl.Name='kek';
  226. local staff=cp(char,v3(.1,.1,.1),'Metal','Light green (Mint)');
  227. cm(staff,'Cylinder',v3(20,1,1));
  228. weld(tor,staff,cf(0,.2,3)*ca(0,0,r(90)));
  229. cap1=cp(staff,v3(.1,.1,.1),'SmoothPlastic','Really black');
  230. cm(cap1,'Cylinder',v3(.2,1.1,1.1));
  231. weld(staff,cap1,cf(.8,0,0));
  232. cap2=cap1:clone'';
  233. cap2.Parent=staff;
  234. weld(staff,cap2,cf(.6,0,0));
  235. cap3=cap2:clone'';
  236. cap3.Parent=staff;
  237. weld(staff,cap3,cf(.2,0,0));
  238. for i=1,5 do
  239. cap4=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  240. cm(cap4,'Cylinder',v3(.35,1.2,1.2));
  241. weld(staff,cap4,cf(.8+i/7,0,0));
  242. end;
  243. ele1=cp(staff,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  244. cm(ele1,'Cylinder',v3(3,1.12,1.12));
  245. weld(staff,ele1,cf(1.23,0,0));
  246. cap5=cp(staff,v3(.1,.1,.1),'Metal','Dark stone grey');
  247. cm(cap5,'Cylinder',v3(.6,1.55,1.55));
  248. weld(staff,cap5,cf(1.95,0,0));
  249. cap6=cap3:clone'';
  250. cap6.Parent=staff;
  251. cap6.Mesh.Scale=v3(.15,1.1,1.1);
  252. weld(staff,cap6,cf(1.6,0,0));
  253. cap7=cap6:clone'';
  254. cap7.Parent=staff;
  255. weld(staff,cap7,cf(1.67,0,0));
  256. rotat=cp(staff,v3(.1,.1,.1),'Plastic','',1);
  257. rtw=weld(staff,rotat,cf()*ca(math.rad(90),0,math.rad(90)));
  258. bm(c1,v3(.5,.599,.7));
  259. for i=1,360,72 do
  260. p=cp(rotat,v3(.1,.1,.1),'Metal','Dark stone grey');
  261. bm(p,v3(.5,.599,.7));
  262. weld(rotat,p,cf(0,-1.95,0)*ca(0,math.rad(i),0)*cf(0,0,.12));
  263. end;
  264. for i=1,360,72 do
  265. p=cp(rotat,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  266. cm(p,'Cylinder',v3(.4,.5,.15));
  267. weld(rotat,p,cf(0,-1.929,0)*ca(0,math.rad(i),0)*cf(0,0,.14)*ca(math.rad(90),math.rad(90),0));
  268. end;
  269. for i=1,360,72 do
  270. p=cp(rotat,v3(.1,.1,.1),'Metal','Dark stone grey');
  271. cm(p,'Wedge',v3(.5,.1,.599));
  272. weld(rotat,p,cf(0,-1.95,0)*ca(0,math.rad(i),0)*cf(0,0,.2)*ca(math.rad(90),math.rad(0),math.rad(0)));
  273. end;
  274. cap8=cap5:clone'';
  275. cap8.Parent=staff;
  276. cap8.BrickColor=bc'Light green (Mint)';
  277. cap8.Mesh.Scale=v3(.4,1.4,1.4);
  278. weld(staff,cap8,cf(2.02,0,0));
  279. for i=1,360,90 do
  280. p=cp(rotat,v3(.1,.1,.1),'Metal','Light stone grey');
  281. cm(p,'Cylinder',v3(2.4,.1,.1));
  282. weld(rotat,p,cf(0,-2.3,0)*ca(0,math.rad(i),0)*cf(0,0,.12)*ca(math.rad(90),math.rad(90),0));
  283. end;
  284. for i=1,360,30 do
  285. p2=cp(rotat,v3(.1,.1,.1),'Metal','Light stone grey');
  286. cm(p2,'Cylinder',v3(.338,.1,.1));
  287. weld(rotat,p2,cf(0,-2.1,0)*ca(0,math.rad(i),0)*cf(0,0,.12));
  288. p3=p2:clone'';
  289. p3.Parent=rotat;
  290. weld(rotat,p3,cf(0,-2.4,0)*ca(0,math.rad(i),0)*cf(0,0,.12));
  291. end;
  292. for i=1,9 do
  293. c=cp(staff,v3(.1,.1,.1),'Metal','Really black');
  294. cm(c,'Cylinder',v3(.1,.9,.9));
  295. weld(staff,c,cf(2+i/30,0,0));
  296. end;
  297. cap9=cp(staff,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  298. cm(cap9,'Cylinder',v3(1.2,.82,.82));
  299. weld(staff,cap9,cf(2.18,0,0));
  300. for i=1,360,22.5 do
  301. p=cp(rotat,v3(.1,.1,.1),'Metal','Light green (Mint)');
  302. bm(p,v3(.2,1.4,.1));
  303. weld(rotat,p,cf(0,-2.4,0)*ca(0,math.rad(i),0)*cf(0,0,.085)*ca(math.rad(-2),0,0));
  304. end;
  305. cap10=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  306. cm(cap10,'Cylinder',v3(.12,1.3,1.3));
  307. weld(staff,cap10,cf(2.55,0,0));
  308. for i=1,360,18 do
  309. p=cp(rotat,v3(.1,.1,.1),'Metal','Light green (Mint)');
  310. bm(p,v3(.22,.6,.1));
  311. weld(rotat,p,cf(0,-2.6,0)*ca(0,math.rad(i),0)*cf(0,0,.123)*ca(math.rad(-8),0,0));
  312. end;
  313. cap11=cap10:clone'';
  314. cap11.Parent=staff;
  315. cap11.Mesh.Scale=v3(.14,1.48,1.48);
  316. weld(staff,cap11,cf(2.65,0,0));
  317. cap12=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  318. cm(cap12,'Cylinder',v3(2,1,1));
  319. weld(staff,cap12,cf(2.8,0,0));
  320. cap13=cap12:clone'';
  321. cap13.Parent=staff;
  322. cap13.Mesh.Scale=v3(.3,1.5,1.5);
  323. weld(staff,cap13,cf(2.75,0,0));
  324. cap14=cap13:clone'';
  325. cap14.Parent=staff;
  326. cap14.Mesh.Scale=v3(.5,1.65,1.65);
  327. weld(staff,cap14,cf(2.84,0,0));
  328. cap15=cap14:clone'';
  329. cap15.Parent=staff;
  330. cap15.Mesh.Scale=v3(.6,1.72,1.72);
  331. weld(staff,cap15,cf(2.965,0,0));
  332. cap16=cp(staff,v3(.1,.1,.1),'Metal','Dark stone grey');
  333. cm(cap16,'Cylinder',v3(.65,1.9,1.9));
  334. weld(staff,cap16,cf(3.05,0,0));
  335. for i=1,360,72 do
  336. p=cp(rotat,v3(.1,.1,.1),'Metal','Light yellow');
  337. cm(p,'Cylinder',v3(2,.1,.1));
  338. weld(rotat,p,cf(0,-3.06,0)*ca(0,math.rad(i),0)*cf(0,0,.11)*ca(0,math.rad(90),0));
  339. p2=cp(rotat,v3(.1,.1,.1),'Metal','Light yellow');
  340. cm(p2,'Sphere',v3(.25,.25,.25));
  341. weld(rotat,p2,cf(0,-3.06,0)*ca(0,math.rad(i),0)*cf(0,0,.29));
  342. p3=cp(rotat,v3(.1,.1,.1),'Metal','Black');
  343. cm(p3,'Cylinder',v3(.1,.64,.64));
  344. weld(rotat,p3,cf(0,-3.05,0)*ca(0,math.rad(i),0)*cf(0,0,.198)*ca(0,math.rad(90),0));
  345. p4=p3:clone'';
  346. p4.Parent=rotat;
  347. p4.Mesh.Scale=v3(.1,.57,.57);
  348. weld(rotat,p4,cf(0,-3.05,0)*ca(0,math.rad(i),0)*cf(0,0,.22)*ca(0,math.rad(90),0));
  349. p5=p4:clone'';
  350. p5.Parent=rotat;
  351. p5.Mesh.Scale=v3(.1,.5,.5);
  352. weld(rotat,p5,cf(0,-3.05,0)*ca(0,math.rad(i),0)*cf(0,0,.24)*ca(0,math.rad(90),0));
  353. p6=cp(rotat,v3(.1,.1,.1),'Metal','Dark stone grey');
  354. cm(p6,'Wedge',v3(.14,.08,.05));
  355. weld(rotat,p6,cf(0,-3.07,0)*ca(0,math.rad(i),0)*cf(0,0,.3)*ca(0,0,0));
  356. end;
  357. cap17=cp(staff,v3(.1,.1,.1),'Metal','Dark stone grey');
  358. cm(cap17,'Cylinder',v3(.23,1.6,1.6));
  359. weld(staff,cap17,cf(3.14,0,0));
  360. cap18=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  361. cm(cap18,'Cylinder',v3(.75,2,2));
  362. weld(staff,cap18,cf(3.24,0,0));
  363. cast=cp(staff,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  364. c=cm(cast,'FileMesh',v3(.4,.17,.17));
  365. c.MeshId='rbxassetid://1290033';
  366. --c.TextureId='rbxassetid://6680839';
  367. weld(staff,cast,cf(3.5,0,0));
  368. p7=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  369. stb1=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)',1)
  370. weld(staff,stb1,cf());
  371. stb2=stb1:clone'';
  372. stb2.Parent=stb1;
  373. stb2.Transparency=0;
  374. bm(stb2,v3(.3,2.3,.16));
  375. weld(stb1,stb2,cf(-2,.14,0)*ca(0,0,r(67)));
  376. stb3=stb2:clone'';
  377. stb3.Parent=stb1;
  378. stb3.Mesh.Scale=v3(.3,.7,.16);
  379. weld(stb2,stb3,cf(-.026,.29,0)*ca(0,0,r(20)));
  380. stb4=cp(stb1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  381. cm(stb4,'Wedge',v3(.16,.3,1.6));
  382. weld(stb3,stb4,cf(-.05,.21,0)*ca(r(90),0,r(-90))*ca(r(-20),0,0));
  383. stb5=stb1:clone'';
  384. stb5.Parent=staff;
  385. weld(staff,stb5,cf()*ca(r(180),0,0));
  386. stb6=stb1:clone'';
  387. stb6.Parent=staff;
  388. weld(staff,stb6,cf()*ca(r(180),0,0)*ca(r(90),0,0));
  389. stb7=stb1:clone'';
  390. stb7.Parent=staff;
  391. weld(staff,stb7,cf()*ca(r(180),0,0)*ca(r(-90),0,0));
  392. et=cp(staff,v3(.1,.1,.1),'Plastic','',1);
  393. weld(staff,et,cf()*ca(0,0,r(90)));
  394. for i=1,360,20 do
  395. p=cp(et,v3(.1,.1,.1),'Metal','Light green (Mint)');
  396. cm(p,'Cylinder',v3(.33,.2,.6));
  397. weld(et,p,cf(0,2.15,0)*ca(0,math.rad(i),0)*cf(0,0,.17));
  398. p2=p:clone'';
  399. p2.Parent=et;
  400. p2.Mesh.Scale=v3(.37,.2,.6);
  401. weld(et,p2,cf(0,2.33,0)*ca(0,math.rad(i),0)*cf(0,0,.19));
  402. p3=p2:clone'';
  403. p3.Parent=et;
  404. p3.Mesh.Scale=v3(.198,.2,.25);
  405. weld(et,p3,cf(0,2,0)*ca(0,math.rad(i),0)*cf(0,0,.1));
  406. p4=cp(et,v3(.1,.1,.1),'Metal','Light green (Mint)');
  407. bm(p4,v3(.3,2,.1));
  408. weld(et,p4,cf(0,2.18,0)*ca(0,math.rad(i),0)*cf(0,0,.015)*ca(math.rad(-26),0,0));
  409. end;
  410. cap19=cp(staff,v3(.1,.1,.1),'Metal','Black');
  411. cm(cap19,'Cylinder',v3(3,1.1,1.1));
  412. weld(staff,cap19,cf(-1.35,0,0));
  413. hL1=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  414. bm(hL1,v3(.6,.8,.5));
  415. weld(staff,hL1,cf(3.244,.15,0)*ca(0,0,r(-10)));
  416. h1=hL1:clone'';
  417. h1.Parent=hL1;
  418. h1.Mesh.Scale=v3(.1,.5,.5);
  419. weld(hL1,h1,cf(.05,.13,0));
  420. h2=h1:clone'';
  421. h2.Parent=h1;
  422. weld(hL1,h2,cf(-.025,.13,0));
  423. h3=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  424. cm(h3,'Wedge',v3(.5,.5,.12));
  425. weld(hL1,h3,cf(-.045,.13,0)*ca(0,r(90),0));
  426. h4=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  427. cm(h4,'Cylinder',v3(.515,.45,.45));
  428. weld(hL1,h4,cf(0,.2,0)*ca(r(90),0,r(90)));
  429. h5=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  430. bm(h5,v3(.2,.1,.5));
  431. weld(hL1,h5,cf(.04,.19,0));
  432. h6=h4:clone'';
  433. h6.Parent=h5;
  434. h6.Material='Neon';
  435. h6.BrickColor=bc'Institutional white';
  436. h6.mesh.Scale=v3(.516,.1,.2);
  437. weld(h5,h6,cf(-.055,0,0)*ca(0,r(90),0));
  438. h7=h6:clone'';
  439. h7.Parent=h5;
  440. weld(h5,h7,cf(-.02,.02,0)*ca(0,r(90),0));
  441. h8=cp(hL1,v3(.1,.1,.1),'Neon','Institutional white');
  442. bm(h8,v3(.03,.15,.516));
  443. weld(hL1,h8,cf(0,.2,0)*ca(0,0,r(-75)));
  444. h9=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  445. bm(h9,v3(.1,.2,.5));
  446. weld(hL1,h9,cf(.05,.25,0)*ca(0,0,r(10)));
  447.  
  448.  
  449. hL2=hL1:clone'';
  450. hL2.Parent=staff;
  451. weld(staff,hL2,cf(3.244,-.15,0)*ca(r(180),0,r(-10)));
  452. hL3=hL2:clone'';
  453. hL3.Parent=staff;
  454. weld(staff,hL3,cf(3.244,0,.15)*ca(r(90),0,r(-10)));
  455. hL4=hL3:clone'';
  456. hL4.Parent=staff;
  457. weld(staff,hL4,cf(3.244,0,-.15)*ca(r(-90),0,r(-10)));
  458. pch=1;
  459. nums={0.374,0.408,0.442,0.476,0.51,0.544,0.578,0.612,0.646,0.68,0.714,0.748,0.782,0.816,0.85,0.884,0.918,0.952,0.986};
  460. spawn(function()
  461. while(wait(.88))do
  462. pch=nums[math.random(1,#nums)];
  463. end;
  464. end);
  465. raty=.25;
  466. spawn(function()
  467. while(wait())do
  468. for i=.25,.85,.025 do
  469. raty=raty+i;
  470. wait(.5);
  471. end;
  472. for i=.85,.25,-0.25 do
  473. raty=raty-1;
  474. wait(.5);
  475. end;
  476. end;
  477. end);
  478. --[[
  479. spawn(function()
  480. while(wait())do
  481. for i=1,90,90 do wait();
  482. rtw.C0=rtw.C0*ca(0,math.rad(i+raty),0);
  483. end;end;
  484. end);
  485. ]]
  486. ms.button1Down:connect(function()
  487. --[[
  488. spawn(function()
  489. for i=1,90,90 do wait(.125);
  490. rtw.C0=rtw.C0*ca(0,math.rad(i+20),0);
  491. end;
  492. end);
  493. ]]
  494. spd=145;
  495. grv=4;
  496. sn(283428477,cast,1.1);
  497. sn(186550561,cast,1.1);
  498. rayCast(workspace,cast,300,9999999);
  499. end);
  500. print'hi';--[[
  501. ms.button2Down:connect(function()
  502. char.Torso.Weld:remove'';
  503. coroutine.wrap(function()
  504. for i,v in pairs(Parts)do v:breakJoints();
  505. TweenCFrame(v,v.CFrame*CFrame.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  506. *CFrame.Angles(math.random(-40,40),math.random(-40,40),math.random(-40,40)),.4);
  507. end;
  508. end)();
  509. end);]]
Add Comment
Please, Sign In to add comment