Advertisement
builderman_build

Untitled

Nov 2nd, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.31 KB | None | 0 0
  1. --[
  2. LEAKED by: The unknown leaker
  3. A skid named "ArticFoxie123" made this.
  4. I just leaked it.
  5. Witeout logging,i'm not that bad.
  6. So,
  7.  
  8. SCRIPT: IceStaff.lua
  9. Player: ArticFoxie123
  10. Leaker: The Unknown leaker
  11. Pass: bit.ly/2f1n6p0
  12. ]--
  13. me=game.Players.localPlayer;
  14. ms=me:getMouse'';
  15. 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;
  16. anim='Idle';
  17. Parts={};
  18. runna=game:findService'RunService';
  19. local char=me.Character;
  20. --char.Archivable=true;
  21. local lam=char['Left Arm'];
  22. local ram=char['Right Arm'];
  23. local llg=char['Left Leg'];
  24. local rlg=char['Right Leg'];
  25. local hed=char.Head;
  26. local tor=char.Torso;
  27. local hrp=char.HumanoidRootPart;
  28. local hum=char.Humanoid;
  29. cp=(function(par,size,mat,color,t)
  30. p=i('Part',par);
  31. p.formFactor=3;
  32. p.Size=size;
  33. p.Material=mat;
  34. p.CanCollide=false;
  35. p.TopSurface=10;
  36. p.BottomSurface=10;
  37. p.Transparency=t;
  38. p.BrickColor=bc(color);
  39. table.insert(Parts,p);
  40. return(p);
  41. end);
  42. cm=(function(par,type,scale)
  43. m=i('SpecialMesh',par);
  44. m.MeshType=type;
  45. m.Scale=scale;
  46. return(m);
  47. end);
  48. bm=(function(par,size)
  49. b=i('BlockMesh',par);
  50. b.Scale=size;
  51. return(b);
  52. end);
  53. weld=(function(par,p1,cf)
  54. w=i('Weld',par);
  55. w.Part0=par;
  56. w.Part1=p1;
  57. w.C0=cf or cf();
  58. return(w);
  59. end);
  60. sn=function(id,p,pi)
  61. s=Instance.new('Sound',p);
  62. s.SoundId='rbxassetid://'..id;
  63. s.Volume=5;
  64. game:service'ContentProvider':preload(s.SoundId);
  65. s.Pitch=pi;
  66. s:play();
  67. end;
  68. function cycle(num)
  69. local section = num % 1 * 3;
  70. local secondary = 0.5 * math.pi * (section % 1);
  71. if section < 1 then
  72. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary);
  73. elseif section < 2 then
  74. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary);
  75. else
  76. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1;
  77. end
  78. end
  79. function Recursive(Model)
  80. local Stuff = {}
  81. local function Recur(Targ)
  82. for i,v in pairs(Targ:getChildren()) do
  83. table.insert(Stuff,v)
  84. Recur(v)
  85. end
  86. end
  87. Recur(Model)
  88. return Stuff
  89. end
  90. function Resize(Character,Scale)
  91. Stuff = Recursive(Character)
  92. Welds = {};
  93. for i,v in pairs(Stuff)do
  94. if v:isA("Motor6D") or v:isA("Weld") then
  95. local C0 = v.C0
  96. local C1 = v.C1
  97. v.C0 = C0+C0.p*Scale-C0.p
  98. v.C1 = C1+C1.p*Scale-C1.p
  99. table.insert(Welds,{v,v.Part1})
  100. v.Part1 = nil
  101. end
  102. if v:isA("SpecialMesh") then
  103. if v.MeshId ~= "" then
  104. v.Scale = v.Scale*Scale
  105. end
  106. end
  107. end
  108. for i,v in pairs(Stuff)do
  109. if v:isA("BasePart") and v.Parent.className ~= "Hat" then
  110. v.formFactor = "Custom"
  111. v.Size = v.Size*Scale
  112. end
  113. end
  114. for i,v in pairs(Welds) do v[1].Part1 = v[2] end
  115. end
  116. --[[
  117. spawn(function()
  118. while(coroutine.yield())do
  119. game.Lighting.TimeOfDay=17;
  120. game.Lighting.FogEnd=9999;
  121. game.Lighting.Outlines=true;
  122. game.Lighting.Ambient=Color3.new(0,0,0);
  123. game.Lighting.Brightness=5;
  124. end;
  125. end);
  126. ]]
  127.  
  128. tab={};
  129. function TweenCFrame(part,cframe,speed)
  130. local c0=part.CFrame
  131. Spawn(function()
  132. for i=-90,90,speed do
  133. local r=((math.sin(math.rad(i))+1)/2)
  134. local a=Vector3.new(getangles(c0)):lerp(Vector3.new(getangles(cframe)),r)
  135. part.CFrame=CFrame.new(c0.p:lerp(cframe.p,r))*CFrame.Angles(a.x,a.y,a.z)
  136. wait()
  137. end
  138. end)
  139. end;
  140. function getangles(cframe)
  141. local x,y,z,m00,m01,m02,m40,m11,m12,m20,m21,m22=cframe:components()
  142. local X=math.atan2(-m12,m22)
  143. local Y=math.asin(m02)
  144. local Z=math.atan2(-m01,m00) return X,Y,Z
  145. end;
  146. --//Resize(workspace[me.Name],2);
  147. function rayCast(par,startpos, Speed, Dmg)
  148. local rayPart = Instance.new("Part")
  149. rayPart.Name = "RayPart"
  150. rayPart.Anchored = true
  151. rayPart.Material='Neon';
  152. rayPart.CanCollide = false
  153. rayPart.Locked = true
  154. rayPart.FormFactor = 3;
  155. rayPart.BrickColor=BrickColor.new'Tr. Flu. Blue';
  156. rayPart.TopSurface = Enum.SurfaceType.Smooth
  157. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  158. rayPart.Size = Vector3.new(6,6,6);
  159. rayPart.Shape='Ball';
  160. fr=i'Fire';
  161. fr.Parent=rayPart;
  162. fr.Size=10;
  163. fr.Heat=1000;
  164. fr.SecondaryColor=bc'Light green (Mint)'.Color;
  165. fr.Color=bc'Cyan'.Color;
  166. fr.Color=bc'Tr. Flu. Blue'.Color;
  167. pl=i('SpotLight',rayPart);
  168. pl.Range=60;
  169. pl.Brightness=5;
  170. pl.Face='Bottom';
  171. pl.Color=bc'Toothpaste'.Color;
  172. --[[pt=Instance.new('ParticleEmitter',rayPart);
  173. pt.EmissionDirection='Top';
  174. pt.LightEmission=1;
  175. pt.Color=ColorSequence.new(Color3.new(1,1,1));
  176. pt.Size=NumberSequence.new(1,1);
  177. pt.Lifetime=NumberRange.new(20,20);
  178. pt.Rate=1000;
  179. pt.Speed=NumberRange.new(6,6)
  180. pt.VelocitySpread=10;
  181. pt.Texture='rbxassetid://175622422';
  182. pt.Rate=10000;
  183. coroutine.wrap(changet)(pt);
  184. coroutine.wrap(tsize)(pt);
  185. ]]
  186. spawn(function()
  187. while(wait())do
  188. for e=6,.5,-.1 do
  189. wait();
  190. rayPart.Size=v3(e,e,e);
  191. end;
  192. for e=.5,6,.1 do
  193. wait();
  194. rayPart.Size=v3(e,e,e);
  195. end;
  196. end;
  197. end);
  198. local bulletposition = startpos.Position;
  199. rayPart.CFrame = startpos.CFrame
  200. local bulletvelocity = (Vector3.new(0,0,0))+( ms.Hit.p - bulletposition).unit*Speed
  201. local bulletlastposition = bulletposition
  202. coroutine.resume(coroutine.create(function()
  203. while true do
  204. local dt = wait(1/60);
  205. bulletlastposition = bulletposition
  206. bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81, 0)*dt)
  207. bulletposition = bulletposition + (bulletvelocity*dt)
  208. local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
  209. local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, { char, rayPart, workspace.currentCamera} )
  210. if (tor.Position - rayPart.Position).magnitude > 640.999 then
  211. spawn(function()
  212. for t=1,10 do wait();
  213. rayPart.Transparency=rayPart.Transparency+.25;
  214. end;
  215. rayPart:destroy();
  216. end);
  217. --//rayPart:Destroy();
  218. break
  219. end
  220. parts={};
  221. if hit then
  222. local damage = math.random(Dmg, Dmg+16);
  223. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  224. hit.Parent.Humanoid.WalkSpeed=6;
  225. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage;
  226.  
  227. end;
  228. if(hit:isA'BasePart'and hit~='Base'and hit.Name~='Base'and hit.Name~='Baseplate')then
  229. table.insert(parts,hit);
  230. wait();
  231. coroutine.wrap(function()
  232. for i,v in pairs(parts)do
  233. TweenCFrame(v,v.CFrame*CFrame.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  234. *CFrame.Angles(math.random(-40,40),math.random(-40,40),math.random(-40,40)),.4);
  235. end;
  236. end)();
  237. end;
  238. bulletposition = hitposition
  239. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  240. rayPart:Destroy()
  241. break
  242. end
  243. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0);
  244. rayPart.Parent = par;
  245. end
  246. end))
  247. end;
  248. function cycle(num)
  249. local section = num % 1 * 3;
  250. local secondary = 0.5 * math.pi * (section % 1);
  251. if section < 1 then
  252. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary);
  253. elseif section < 2 then
  254. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary);
  255. else
  256. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1;
  257. end
  258. end
  259. ---------------------------------------------------
  260. ypcall(function()char.kek:remove'';end);
  261. mdl=Instance.new('Model',char);
  262. mdl.Name='kek';
  263. local staff=cp(mdl,v3(.1,.1,.1),'Metal','Light green (Mint)');
  264. staff.Name='sTf';
  265. cm(staff,'Cylinder',v3(20,1,1));
  266. weld(tor,staff,cf(0,.2,3)*ca(0,0,r(90)));
  267. cap1=cp(staff,v3(.1,.1,.1),'SmoothPlastic','Really black');
  268. cm(cap1,'Cylinder',v3(.2,1.1,1.1));
  269. weld(staff,cap1,cf(.8,0,0));
  270. cap2=cap1:clone'';
  271. cap2.Parent=staff;
  272. weld(staff,cap2,cf(.6,0,0));
  273. cap3=cap2:clone'';
  274. cap3.Parent=staff;
  275. weld(staff,cap3,cf(.2,0,0));
  276. for i=1,5 do
  277. cap4=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  278. cm(cap4,'Cylinder',v3(.35,1.2,1.2));
  279. weld(staff,cap4,cf(.8+i/7,0,0));
  280. end;
  281. ele1=cp(staff,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  282. cm(ele1,'Cylinder',v3(3,1.12,1.12));
  283. weld(staff,ele1,cf(1.23,0,0));
  284. cap5=cp(staff,v3(.1,.1,.1),'Metal','Dark stone grey');
  285. cm(cap5,'Cylinder',v3(.6,1.55,1.55));
  286. weld(staff,cap5,cf(1.95,0,0));
  287. cap6=cap3:clone'';
  288. cap6.Parent=staff;
  289. cap6.Mesh.Scale=v3(.15,1.1,1.1);
  290. weld(staff,cap6,cf(1.6,0,0));
  291. cap7=cap6:clone'';
  292. cap7.Parent=staff;
  293. weld(staff,cap7,cf(1.67,0,0));
  294. rotat=cp(staff,v3(.1,.1,.1),'Plastic','',1);
  295. rtw=weld(staff,rotat,cf()*ca(math.rad(90),0,math.rad(90)));
  296. bm(c1,v3(.5,.599,.7));
  297. for i=1,360,72 do
  298. p=cp(rotat,v3(.1,.1,.1),'Metal','Dark stone grey');
  299. bm(p,v3(.5,.599,.7));
  300. weld(rotat,p,cf(0,-1.95,0)*ca(0,math.rad(i),0)*cf(0,0,.12));
  301. end;
  302. for i=1,360,72 do
  303. p=cp(rotat,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  304. cm(p,'Cylinder',v3(.4,.5,.15));
  305. 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));
  306. end;
  307. for i=1,360,72 do
  308. p=cp(rotat,v3(.1,.1,.1),'Metal','Dark stone grey');
  309. cm(p,'Wedge',v3(.5,.1,.599));
  310. 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)));
  311. end;
  312. cap8=cap5:clone'';
  313. cap8.Parent=staff;
  314. cap8.BrickColor=bc'Light green (Mint)';
  315. cap8.Mesh.Scale=v3(.4,1.4,1.4);
  316. weld(staff,cap8,cf(2.02,0,0));
  317. for i=1,360,90 do
  318. p=cp(rotat,v3(.1,.1,.1),'Metal','Light stone grey');
  319. cm(p,'Cylinder',v3(2.4,.1,.1));
  320. 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));
  321. end;
  322. for i=1,360,30 do
  323. p2=cp(rotat,v3(.1,.1,.1),'Metal','Light stone grey');
  324. cm(p2,'Cylinder',v3(.338,.1,.1));
  325. weld(rotat,p2,cf(0,-2.1,0)*ca(0,math.rad(i),0)*cf(0,0,.12));
  326. p3=p2:clone'';
  327. p3.Parent=rotat;
  328. weld(rotat,p3,cf(0,-2.4,0)*ca(0,math.rad(i),0)*cf(0,0,.12));
  329. end;
  330. for i=1,9 do
  331. c=cp(staff,v3(.1,.1,.1),'Metal','Really black');
  332. cm(c,'Cylinder',v3(.1,.9,.9));
  333. weld(staff,c,cf(2+i/30,0,0));
  334. end;
  335. cap9=cp(staff,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  336. cm(cap9,'Cylinder',v3(1.2,.82,.82));
  337. weld(staff,cap9,cf(2.18,0,0));
  338. for i=1,360,22.5 do
  339. p=cp(rotat,v3(.1,.1,.1),'Metal','Light green (Mint)');
  340. bm(p,v3(.2,1.4,.1));
  341. weld(rotat,p,cf(0,-2.4,0)*ca(0,math.rad(i),0)*cf(0,0,.085)*ca(math.rad(-2),0,0));
  342. end;
  343. cap10=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  344. cm(cap10,'Cylinder',v3(.12,1.3,1.3));
  345. weld(staff,cap10,cf(2.55,0,0));
  346. for i=1,360,18 do
  347. p=cp(rotat,v3(.1,.1,.1),'Metal','Light green (Mint)');
  348. bm(p,v3(.22,.6,.1));
  349. weld(rotat,p,cf(0,-2.6,0)*ca(0,math.rad(i),0)*cf(0,0,.123)*ca(math.rad(-8),0,0));
  350. end;
  351. cap11=cap10:clone'';
  352. cap11.Parent=staff;
  353. cap11.Mesh.Scale=v3(.14,1.48,1.48);
  354. weld(staff,cap11,cf(2.65,0,0));
  355. cap12=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  356. cm(cap12,'Cylinder',v3(2,1,1));
  357. weld(staff,cap12,cf(2.8,0,0));
  358. cap13=cap12:clone'';
  359. cap13.Parent=staff;
  360. cap13.Mesh.Scale=v3(.3,1.5,1.5);
  361. weld(staff,cap13,cf(2.75,0,0));
  362. cap14=cap13:clone'';
  363. cap14.Parent=staff;
  364. cap14.Mesh.Scale=v3(.5,1.65,1.65);
  365. weld(staff,cap14,cf(2.84,0,0));
  366. cap15=cap14:clone'';
  367. cap15.Parent=staff;
  368. cap15.Mesh.Scale=v3(.6,1.72,1.72);
  369. weld(staff,cap15,cf(2.965,0,0));
  370. cap16=cp(staff,v3(.1,.1,.1),'Metal','Dark stone grey');
  371. cm(cap16,'Cylinder',v3(.65,1.9,1.9));
  372. weld(staff,cap16,cf(3.05,0,0));
  373. for i=1,360,72 do
  374. p=cp(rotat,v3(.1,.1,.1),'Metal','Light yellow');
  375. cm(p,'Cylinder',v3(2,.1,.1));
  376. weld(rotat,p,cf(0,-3.06,0)*ca(0,math.rad(i),0)*cf(0,0,.11)*ca(0,math.rad(90),0));
  377. p2=cp(rotat,v3(.1,.1,.1),'Metal','Light yellow');
  378. cm(p2,'Sphere',v3(.25,.25,.25));
  379. weld(rotat,p2,cf(0,-3.06,0)*ca(0,math.rad(i),0)*cf(0,0,.29));
  380. p3=cp(rotat,v3(.1,.1,.1),'Metal','Black');
  381. cm(p3,'Cylinder',v3(.1,.64,.64));
  382. weld(rotat,p3,cf(0,-3.05,0)*ca(0,math.rad(i),0)*cf(0,0,.198)*ca(0,math.rad(90),0));
  383. p4=p3:clone'';
  384. p4.Parent=rotat;
  385. p4.Mesh.Scale=v3(.1,.57,.57);
  386. weld(rotat,p4,cf(0,-3.05,0)*ca(0,math.rad(i),0)*cf(0,0,.22)*ca(0,math.rad(90),0));
  387. p5=p4:clone'';
  388. p5.Parent=rotat;
  389. p5.Mesh.Scale=v3(.1,.5,.5);
  390. weld(rotat,p5,cf(0,-3.05,0)*ca(0,math.rad(i),0)*cf(0,0,.24)*ca(0,math.rad(90),0));
  391. p6=cp(rotat,v3(.1,.1,.1),'Metal','Dark stone grey');
  392. cm(p6,'Wedge',v3(.14,.08,.05));
  393. weld(rotat,p6,cf(0,-3.07,0)*ca(0,math.rad(i),0)*cf(0,0,.3)*ca(0,0,0));
  394. end;
  395. cap17=cp(staff,v3(.1,.1,.1),'Metal','Dark stone grey');
  396. cm(cap17,'Cylinder',v3(.23,1.6,1.6));
  397. weld(staff,cap17,cf(3.14,0,0));
  398. cap18=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  399. cm(cap18,'Cylinder',v3(.75,2,2));
  400. weld(staff,cap18,cf(3.24,0,0));
  401. cast=cp(staff,v3(.1,.1,.1),'Neon','Tr. Flu. Blue');
  402. c=cm(cast,'FileMesh',v3(.3,.1,.1));
  403. c.MeshId='rbxassetid://1290033';
  404. --c.TextureId='rbxassetid://6680839';
  405. weld(staff,cast,cf(3.5,0,0));
  406. p7=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  407. stb1=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)',1)
  408. weld(staff,stb1,cf());
  409. stb2=stb1:clone'';
  410. stb2.Parent=stb1;
  411. stb2.Transparency=0;
  412. bm(stb2,v3(.3,2.3,.16));
  413. weld(stb1,stb2,cf(-2,.14,0)*ca(0,0,r(67)));
  414. stb3=stb2:clone'';
  415. stb3.Parent=stb1;
  416. stb3.Mesh.Scale=v3(.3,.7,.16);
  417. weld(stb2,stb3,cf(-.026,.29,0)*ca(0,0,r(20)));
  418. stb4=cp(stb1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  419. cm(stb4,'Wedge',v3(.16,.3,1.6));
  420. weld(stb3,stb4,cf(-.05,.21,0)*ca(r(90),0,r(-90))*ca(r(-20),0,0));
  421. stb5=stb1:clone'';
  422. stb5.Parent=staff;
  423. weld(staff,stb5,cf()*ca(r(180),0,0));
  424. stb6=stb1:clone'';
  425. stb6.Parent=staff;
  426. weld(staff,stb6,cf()*ca(r(180),0,0)*ca(r(90),0,0));
  427. stb7=stb1:clone'';
  428. stb7.Parent=staff;
  429. weld(staff,stb7,cf()*ca(r(180),0,0)*ca(r(-90),0,0));
  430. et=cp(staff,v3(.1,.1,.1),'Plastic','',1);
  431. weld(staff,et,cf()*ca(0,0,r(90)));
  432. for i=1,360,20 do
  433. p=cp(et,v3(.1,.1,.1),'Metal','Light green (Mint)');
  434. cm(p,'Cylinder',v3(.33,.2,.6));
  435. weld(et,p,cf(0,2.15,0)*ca(0,math.rad(i),0)*cf(0,0,.17));
  436. p2=p:clone'';
  437. p2.Parent=et;
  438. p2.Mesh.Scale=v3(.37,.2,.6);
  439. weld(et,p2,cf(0,2.33,0)*ca(0,math.rad(i),0)*cf(0,0,.19));
  440. p3=p2:clone'';
  441. p3.Parent=et;
  442. p3.Mesh.Scale=v3(.198,.2,.25);
  443. weld(et,p3,cf(0,2,0)*ca(0,math.rad(i),0)*cf(0,0,.1));
  444. p4=cp(et,v3(.1,.1,.1),'Metal','Light green (Mint)');
  445. bm(p4,v3(.3,2,.1));
  446. weld(et,p4,cf(0,2.18,0)*ca(0,math.rad(i),0)*cf(0,0,.015)*ca(math.rad(-26),0,0));
  447. end;
  448. cap19=cp(staff,v3(.1,.1,.1),'Metal','Black');
  449. cm(cap19,'Cylinder',v3(3,1.1,1.1));
  450. wa=weld(staff,cap19,cf(-1.35,0,0));
  451.  
  452. hL1=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  453. bm(hL1,v3(.6,.8,.5));
  454. weld(staff,hL1,cf(3.244,.15,0)*ca(0,0,r(-14)));
  455. h1=hL1:clone'';
  456. h1.Parent=hL1;
  457. h1.Mesh.Scale=v3(.1,.5,.5);
  458. weld(hL1,h1,cf(.05,.13,0));
  459. h2=h1:clone'';
  460. h2.Parent=h1;
  461. weld(hL1,h2,cf(-.025,.13,0));
  462. h3=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  463. cm(h3,'Wedge',v3(.5,.5,.12));
  464. weld(hL1,h3,cf(-.045,.13,0)*ca(0,r(90),0));
  465. h4=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  466. cm(h4,'Cylinder',v3(.515,.45,.45));
  467. weld(hL1,h4,cf(0,.2,0)*ca(r(90),0,r(90)));
  468. h5=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  469. bm(h5,v3(.2,.1,.5));
  470. weld(hL1,h5,cf(.04,.19,0));
  471. h6=h4:clone'';
  472. h6.Parent=h5;
  473. h6.Material='Neon';
  474. h6.BrickColor=bc'Institutional white';
  475. h6.mesh.Scale=v3(.516,.1,.2);
  476. weld(h5,h6,cf(-.055,0,0)*ca(0,r(90),0));
  477. h7=h6:clone'';
  478. h7.Parent=h5;
  479. weld(h5,h7,cf(-.02,.02,0)*ca(0,r(90),0));
  480. h8=cp(hL1,v3(.1,.1,.1),'Neon','Institutional white');
  481. bm(h8,v3(.03,.15,.516));
  482. weld(hL1,h8,cf(0,.2,0)*ca(0,0,r(-75)));
  483. h9=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  484. bm(h9,v3(.3,.25,.5));
  485. weld(hL1,h9,cf(.024,.22,0)*ca(0,0,r(10)));
  486. h10=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  487. cm(h10,'Wedge',v3(.1,.1,.35));
  488. weld(hL1,h10,cf(.015,.25,.04)*ca(0,r(90),0)*ca(r(-10),0,0));
  489. h11=h10:clone'';
  490. h11.Parent=hL1;
  491. weld(hL1,h11,cf(.015,.25,-.04)*ca(0,r(90),0)*ca(r(-10),0,0));
  492. h12=h9:clone'';
  493. h12.Parent=hL1;
  494. h12.Mesh.Scale=v3(.75,.1,.5);
  495. weld(hL1,h12,cf(.12,.26,0)*ca(0,0,r(4)));
  496. h13=h12:clone'';
  497. h13.Parent=hL1;
  498. weld(hL1,h13,cf(.12,.2,0)*ca(0,0,r(4)));
  499. h14=cp(hL1,v3(.1,.1,.1),'Metal','Light green (Mint)');
  500. cm(h14,'Cylinder',v3(.9,.45,.45));
  501. weld(hL1,h14,cf(.18,.236,0)*ca(r(90),0,r(90)));
  502. h15=h14:clone'';
  503. h15.Parent=h14;
  504. h15.Mesh.Scale=v3(1,.3,.3);
  505. weld(h14,h15,cf());
  506. --//stabb
  507. h16=cp(h14,v3(.1,.1,.1),'Metal','Laurel green');
  508. cm(h16,'Wedge',v3(.13,.5,1.7));
  509. weld(h14,h16,cf(-.058,-.18,-.02)*ca(r(-95),0,0));
  510. h17=cp(h16,v3(.1,.1,.1),'Metal','Laurel green');
  511. cm(h17,'Wedge',v3(.13,.2,1.72));
  512. weld(h16,h17,cf()*ca(r(170),0,0));
  513. h18=cp(h16,v3(.1,.1,.1),'Metal','Laurel green');
  514. cm(h18,'Wedge',v3(.13,.35,.7));
  515. weld(h16,h18,cf(0,-.051,.2)*ca(r(90),r(180),0));
  516. h19=h18:clone'';
  517. h19.Parent=h18;
  518. h19.Mesh.Scale=v3(.13,.16,.3);
  519. weld(h18,h19,cf(0,0,.086)*ca(r(90),0,0));
  520. h20=h19:clone'';
  521. h20.Parent=h18;
  522. h20.Mesh.Scale=v3(.13,.35,1.5);
  523. weld(h16,h20,cf(0,-.082,.015)*ca(0,0,r(180)));
  524. h21=h20:clone'';
  525. h21.Parent=h16;
  526. h21.Mesh.Scale=v3(.13,.2,1.4);
  527. weld(h16,h21,cf(0,-.042,-.3)*ca(r(-6),0,0));
  528. h22=h16:clone'';
  529. h22.Parent=h16;
  530. weld(h16,h22,cf(.12,0,0));
  531.  
  532. --//
  533. for i=1,360,12.857 do
  534. p=cp(et,v3(.1,.1,.1),'Ice','Olivine');
  535. cm(p,'Cylinder',v3(20,.1,1));
  536. weld(et,p,cf()*ca(0,math.rad(i),r(90))*cf(0,0,.097));
  537. end;
  538. for i=1,360,124 do
  539. p=cp(et,v3(.1,.1,.1),'Metal','Light green (Mint)');
  540. cm(p,'Cylinder',v3(1,.4,1));
  541. weld(et,p,cf(0,1.3,0)*ca(0,math.rad(i),r(90))*cf(0,0,.14));
  542. p2=cp(p,v3(.1,.1,.1),'Neon','Cyan',.6);
  543. cm(p2,'Cylinder',v3(1.2,.3,1.2));
  544. weld(et,p2,cf(0,1.3,0)*ca(0,math.rad(i),r(90))*cf(0,0,.14))
  545. p3=cp(et,v3(.1,.1,.1),'Metal','Light green (Mint)');
  546. cm(p3,'Wedge',v3(.1,1,2));
  547. weld(et,p3,cf(0,1.4,0)*ca(r(180),math.rad(i),r(180))*cf(0,0,.1)*ca(r(-65),0,0));
  548. end;
  549. h23=cp(staff,v3(.1,.1,.1),'Metal','Light green (Mint)');
  550. bm(h23,v3(.2,.5,.1));
  551. weld(staff,h23,cf(-1.8,.08,.08));
  552. h24=cp(h23,v3(.1,.1,.1),'Metal','Light green (Mint)');
  553. cm(h24,'Cylinder',v3(.8,.4,.8));
  554. weld(h23,h24,cf(0,.07,0));
  555. h25=h24:clone'';
  556. h25.Parent=h24;
  557. h25.Mesh.Scale=v3(.75,.45,.75);
  558. weld(h24,h25,cf());
  559. h26=h25:clone'';
  560. h26.Parent=h24;
  561. h26.BrickColor=bc'Daisy orange';
  562. h26.Material='Neon';
  563. h26.Mesh.Scale=v3(.4,.45,.1);
  564. weld(h24,h26,cf(.07,0,.02));
  565. h27=h26:clone'';
  566. h27.Parent=h24;
  567. weld(h24,h27,cf(.05,0,-.02));
  568.  
  569. hL2=hL1:clone'';
  570. hL2.Parent=staff;
  571. weld(staff,hL2,cf(3.244,-.15,0)*ca(r(180),0,r(-14)));
  572. hL3=hL2:clone'';
  573. hL3.Parent=staff;
  574. weld(staff,hL3,cf(3.244,0,.15)*ca(r(90),0,r(-14)));
  575. hL4=hL3:clone'';
  576. hL4.Parent=staff;
  577. weld(staff,hL4,cf(3.244,0,-.15)*ca(r(-90),0,r(-14)));
  578. pch=1;
  579. 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};
  580. spawn(function()
  581. while(wait(.88))do
  582. pch=nums[math.random(1,#nums)];
  583. end;
  584. end);
  585. raty=.25;
  586. spawn(function()
  587. while(wait())do
  588. for i=.25,.85,.025 do
  589. raty=raty+i;
  590. wait(.5);
  591. end;
  592. for i=.85,.25,-0.25 do
  593. raty=raty-1;
  594. wait(.5);
  595. end;
  596. end;
  597. end);
  598. ms.button1Down:connect(function()
  599. spd=145;
  600. grv=4;
  601. sn(283428477,cast,1.1);
  602. sn(186550561,cast,1.1);
  603. rayCast(workspace,cast,200,9999999);
  604. end);
  605. Resize(workspace[me.Name],1.7);
  606. --//---------------------------------------------------
  607. function Lerp(a,b,i)
  608. local com1={a.X,a.Y,a.Z,a:toEulerAnglesXYZ()};
  609. local com2={b.X,b.Y,b.Z,b:toEulerAnglesXYZ()};
  610. local calx=com1[1]+(com2[1]-com1[1])*i;
  611. local caly=com1[2]+(com2[2]-com1[2])*i;
  612. local calz=com1[3]+(com2[3]-com1[3])*i;
  613. local cala=com1[4]+(com2[4]-com1[4])*i;
  614. local calb=com1[5]+(com2[5]-com1[5])*i;
  615. local calc=com1[6]+(com2[6]-com1[6])*i;
  616. return CFrame.new(calx,caly,calz)*CFrame.Angles(cala,calb,calc);
  617. end;
  618. newWeld=function(wld,wp0,wp1,wc0x,wc0y,wc0z)
  619. wld=Instance.new('Weld',wp1);
  620. wld.Part0=wp0;
  621. wld.Part1=wp1;
  622. wld.C0=CFrame.new(wc0x,wc0y,wc0z);
  623. end;
  624. newWeld=function(wp0,wp1,wc0x,wc0y,wc0z)
  625. wld=Instance.new('Weld',wp1);
  626. wld.Part0=wp0;
  627. wld.Part1=wp1;
  628. wld.C0=CFrame.new(wc0x,wc0y,wc0z);
  629. return(wld);
  630. end;
  631. local law=newWeld(tor, lam,-1.5*1.7,0.5*1.7,0);
  632. law.C1=CFrame.new(0,0.5*1.7,0);
  633. local raw=newWeld(tor,ram,1.5*1.7,0.5*1.7,0);
  634. raw.C1=CFrame.new(0,0.5*1.7,0);
  635. local hew=newWeld(tor,hed,0,1.5*1.7,0);
  636. local llw=newWeld(tor,llg,-0.5*1.7,-1,0);
  637. llw.C1=CFrame.new(0,1*1.7,0);
  638. local rlw=newWeld(tor,rlg,0.5*1.7,-1,0);
  639. rlw.C1=CFrame.new(0,1*1.7,0);
  640. local tow=newWeld(hrp,tor,0,-1,0);
  641. tow.C1=CFrame.new(0,-1,0);
  642. local laD=CFrame.new(-1.5*1.7, 0.5*1.7, 0);
  643. local raD=CFrame.new(1.5*1.7, 0.5*1.7, 0);
  644. local hD=CFrame.new(0, 1.5*1.7, 0);
  645. local tD=CFrame.new(0, -1*1.7, 0);
  646. local llD=CFrame.new(-0.5*1.7, -1*1.7, 0);
  647. local rlD=CFrame.new(0.5*1.7, -1*1.7, 0);
  648.  
  649. local syne=0;
  650. runna.RenderStepped:connect(function()
  651. syne=syne+1;
  652. if(tor.Velocity*Vector3.new(1,0,1)).magnitude<1 and(tor.Velocity.y<5)and(tor.Velocity.y>-5)then
  653. anim='Idling';
  654. elseif(tor.Velocity.y>5)and(hum.Jump)then
  655. anim='Jumping';
  656. elseif(tor.Velocity.y<-5) and(tor.Velocity.z>0)and(hum.Jump)then
  657. anim='Freefalling';
  658. elseif (hrp.Velocity*Vector3.new(1,0,1)).magnitude>1 and(hrp.Velocity*Vector3.new(1,0,1)).magnitude<25 and(tor.Velocity.y<5)and(tor.Velocity.y>-5)then
  659. anim='Walking'
  660. elseif(hrp.Velocity*Vector3.new(1,0,1)).magnitude>1 and(hrp.Velocity*Vector3.new(1,0,1)).magnitude<32 and(tor.Velocity.y<5)and(tor.Velocity.y>-5)then
  661. anim='Running';
  662. end
  663. if(anim=='Idle')then
  664. hed.Weld.C0=Lerp(hed.Weld.C0,hD*CFrame.Angles(math.rad(40),0,0),1.2);
  665. raw.C0=Lerp(raw.C0,raD*CFrame.new(0,.01+.05*math.sin(syne/12),0)*CFrame.Angles(-.2+.12*-math.cos(syne/14),.12-.05*math.cos(syne/8)*-math.sin(syne/22)/1.2,0),.1);
  666. law.C0=Lerp(law.C0,laD*CFrame.new(0,.01+.05*math.sin(syne/12),0)*CFrame.Angles(-.2+.12*-math.cos(syne/14),-.12-.05*math.cos(syne/8)*-math.sin(syne/22)/1.2,0),.1);
  667.  
  668.  
  669. end;
  670. if(anim=='Walking')then
  671.  
  672. end;
  673. if(anim=='Jumping')then
  674.  
  675. end;
  676.  
  677. if(anim=='Running')then
  678.  
  679. end;
  680. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement