Advertisement
astronaut32

aleska

Jun 11th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.77 KB | None | 0 0
  1. LocalPlayer = game.Players.LocalPlayer
  2. Activated = false
  3. Equipped = false
  4. Regening = false
  5. FireBall = false
  6. Spikes = false
  7. ForceField = false
  8. shooting = false
  9. Mode = "Shoot"
  10. Energy = 100
  11. mouse = LocalPlayer:GetMouse()
  12. t = Instance.new("Tool",LocalPlayer.Backpack)
  13. t.Name = 'Wizard staff'
  14. t.GripPos = Vector3.new(0,-2,0)
  15. p = Instance.new("Part",t)
  16. p.FormFactor = 'Custom'
  17. p.Name = 'Handle'
  18. p.CanCollide = false
  19. m = Instance.new("SpecialMesh",p)
  20. m.MeshId = 'http://www.roblox.com/asset/?id=18434043'
  21. m.TextureId = 'http://www.roblox.com/asset/?id=26017177'
  22. char = LocalPlayer.Character
  23. mouse = LocalPlayer:GetMouse()
  24. humanoid = char:findFirstChild("Humanoid")
  25. torso = char:findFirstChild("Torso")
  26. head = char.Head
  27. ra = char:findFirstChild("Right Arm")
  28. la = char:findFirstChild("Left Arm")
  29. rl = char:findFirstChild("Right Leg")
  30. ll = char:findFirstChild("Left Leg")
  31. rs = torso:findFirstChild("Right Shoulder")
  32. ls = torso:findFirstChild("Left Shoulder")
  33. rh = torso:findFirstChild("Right Hip")
  34. lh = torso:findFirstChild("Left Hip")
  35. neck = torso:findFirstChild("Neck")
  36. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  37. anim = char:findFirstChild("Animate")
  38. rootpart = char:findFirstChild("HumanoidRootPart")
  39. camera = workspace.CurrentCamera
  40. if anim then
  41. anim:Destroy()
  42. end
  43. rm = Instance.new("Motor", torso)
  44. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  45. rm.C1 = CFrame.new(0, 0.5, 0)
  46. rm.Part0 = torso
  47. rm.Part1 = ra
  48. lm = Instance.new("Motor", torso)
  49. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  50. lm.C1 = CFrame.new(0, 0.5, 0)
  51. lm.Part0 = torso
  52. lm.Part1 = la
  53. rlegm = Instance.new("Motor", torso)
  54. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  55. rlegm.C1 = CFrame.new(0, 1, 0)
  56. rlegm.Part0 = torso
  57. rlegm.Part1 = rl
  58. llegm = Instance.new("Motor", torso)
  59. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  60. llegm.C1 = CFrame.new(0, 1, 0)
  61. llegm.Part0 = torso
  62. llegm.Part1 = ll
  63. rsc0 = rm.C0
  64. lsc0 = lm.C0
  65. llc0 = llegm.C0
  66. rlc0 = rlegm.C0
  67. neckc0 = neck.C0
  68. rootc0 = rj.C0
  69. PLAYERGUI = LocalPlayer.PlayerGui
  70. GUI = Instance.new("ScreenGui",PLAYERGUI)
  71. FRAME = Instance.new("Frame",GUI)
  72. FRAME.Size = UDim2.new(0.5,0,0.05,0)
  73. FRAME.BackgroundColor3 = BrickColor.new("Bright blue").Color
  74. FRAME.BorderSizePixel = 0
  75. TEXTLABEL = Instance.new("TextLabel",FRAME)
  76. TEXTLABEL.Size = UDim2.new(1,0,1,0)
  77. TEXTLABEL.BackgroundTransparency = 1
  78. TEXTLABEL.Text = "Mana: "..tostring(Energy)
  79. TEXTLABEL.BorderSizePixel = 0
  80. TEXTLABEL.Font = 'Legacy'
  81. TEXTLABEL.FontSize = 'Size24'
  82. FRAME2 = Instance.new("Frame",GUI)
  83. FRAME2.Size = UDim2.new(0.5,0,0.05,0)
  84. FRAME2.BackgroundColor3 = BrickColor.new("Bright red").Color
  85. FRAME2.BorderSizePixel = 0
  86. FRAME2.Position = UDim2.new(0.5,0,0,0)
  87. TEXTLABEL2 = Instance.new("TextLabel",FRAME2)
  88. TEXTLABEL2.Size = UDim2.new(1,0,1,0)
  89. TEXTLABEL2.BackgroundTransparency = 1
  90. TEXTLABEL2.Text = "Health: "..tostring(humanoid.Health)
  91. TEXTLABEL2.BorderSizePixel = 0
  92. TEXTLABEL2.Font = 'Legacy'
  93. TEXTLABEL2.FontSize = 'Size24'
  94. FRAME3 = Instance.new("Frame",GUI)
  95. FRAME3.Size = UDim2.new(0.5,0,0.05,0)
  96. FRAME3.BackgroundColor3 = BrickColor.new("Lime green").Color
  97. FRAME3.BorderSizePixel = 0
  98. FRAME3.Position = UDim2.new(0.5,0,0.05,0)
  99. TEXTLABEL3 = Instance.new("TextLabel",FRAME3)
  100. TEXTLABEL3.Size = UDim2.new(1,0,1,0)
  101. TEXTLABEL3.BackgroundTransparency = 1
  102. TEXTLABEL3.Text = "Spell: Star shoot"
  103. TEXTLABEL3.BorderSizePixel = 0
  104. TEXTLABEL3.Font = 'Legacy'
  105. TEXTLABEL3.FontSize = 'Size24'
  106. TEXTLABEL3.TextScaled = true
  107. function __getVelocity(p1,p2,speed)
  108. local dis=(p1-p2).magnitude
  109. if speed=="dis" then
  110. if dis*6>100 then
  111. speed=dis*6
  112. else
  113. speed=100
  114. end
  115. end
  116. local x=(p1.x-p2.x)/dis*speed
  117. local y=(p1.y-p2.y)/dis*speed
  118. local z=(p1.z-p2.z)/dis*speed
  119. return Vector3.new(-x,-y+10,-z)
  120. end
  121. function __onActivated()
  122. Activated = true
  123. end
  124. function __onDeactivated()
  125. Activated = false
  126. end
  127. function __onEquipped(mouse)
  128. Equipped = true
  129. pcall(function()
  130. local a = Instance.new("Explosion",LocalPlayer.Character)
  131. a.Position = LocalPlayer.Character['Right Arm'].Position
  132. a.BlastPressure = 0
  133. a.BlastRadius = 20
  134. end)
  135. local b = Instance.new("Fire",p)
  136. b.Size = 1
  137. b.Color = Color3.new(0, 255, 255)
  138. b.SecondaryColor = Color3.new(255, 255, 0)
  139. local w = Instance.new("Motor",char['Right Arm'])
  140. w.Name = 'Wizard staff weld'
  141. w.Part0 = char['Right Arm']
  142. w.Part1 = p
  143. w.C1 = CFrame.new(0,-1.5,0.5) * CFrame.Angles(math.rad(90),0,0)
  144. end
  145. function __onUnequipped(mouse)
  146. Equipped = false
  147. pcall(function()
  148. p.Fire:Destroy()
  149. end)
  150. pcall(function()
  151. char['Right Arm']['Wizard staff weld']:Destroy()
  152. end)
  153. end
  154. function __Shoot()
  155. if Regening == true then return end
  156. if Energy < 5 then return end
  157. shooting = true
  158. Energy = Energy - 5
  159. humanoid.WalkSpeed = 0
  160. local speed = math.random(400,500)
  161. local bullet = Instance.new("Part",workspace)
  162. bullet.Name = 'Bullet'
  163. bullet.TopSurface = 0
  164. bullet.BottomSurface = 0
  165. bullet.FormFactor = 'Custom'
  166. bullet.CFrame = p.CFrame
  167. bullet.CanCollide = false
  168. bullet.Velocity = __getVelocity(bullet.Position, mouse.Hit.p, speed)
  169. local bulletmesh = Instance.new("SpecialMesh",bullet)
  170. bulletmesh.MeshId = 'http://www.roblox.com/asset/?id=24388358'
  171. bulletmesh.TextureId = 'http://www.roblox.com/asset/?id=24388341'
  172. bulletmesh.VertexColor = Vector3.new(0,0,0)
  173. bullet.Touched:connect(function(toucher)
  174. if toucher.Parent:findFirstChild'Head' and toucher.Parent:findFirstChild'Torso' and toucher.Parent.Name ~= LocalPlayer.Name then
  175. for i,v in pairs(toucher.Parent:children()) do
  176. if v.ClassName == 'Humanoid' then
  177. if v.Health > 100 then
  178. v.Health = 100
  179. else
  180. v.Health = v.Health - speed/50
  181. end
  182. end
  183. end
  184. bullet:Destroy()
  185. end
  186. end)
  187. wait(1)
  188. shooting = false
  189. humanoid.WalkSpeed = 16
  190. end
  191. function __FireBall()
  192. if Regening == true then return end
  193. if Energy < 50 then return end
  194. if FireBall == true then return end
  195. if ForceField == true then return end
  196. Energy = Energy - 50
  197. local a = Instance.new("Part",workspace)
  198. a.Anchored = true
  199. a.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,-5)
  200. a.FormFactor = 'Custom'
  201. a.Size = Vector3.new(5,5,5)
  202. Instance.new("SpecialMesh", a).MeshType = 'Sphere'
  203. local b = Instance.new('Decal',a)
  204. b.Texture = 'http://www.roblox.com/asset/?id=58278973'
  205. b.Face = 'Right'
  206. local c = Instance.new('Decal',a)
  207. c.Texture = 'http://www.roblox.com/asset/?id=58278973'
  208. c.Face = 'Left'
  209. local d = Instance.new('Decal',a)
  210. d.Texture = 'http://www.roblox.com/asset/?id=58278973'
  211. d.Face = 'Top'
  212. local e = Instance.new('Decal',a)
  213. e.Texture = 'http://www.roblox.com/asset/?id=58278973'
  214. e.Face = 'Front'
  215. local f = Instance.new('Decal',a)
  216. f.Texture = 'http://www.roblox.com/asset/?id=58278973'
  217. f.Face = 'Back'
  218. local g = Instance.new('Decal',a)
  219. g.Texture = 'http://www.roblox.com/asset/?id=58278973'
  220. g.Face = 'Bottom'
  221. local x = Instance.new('Fire',a)
  222. x.Size = 20
  223. local con = a.Touched:connect(function(what)
  224. if what.Parent.Name ~= LocalPlayer.Name then
  225. if what.Parent:findFirstChild'Torso' and what.Parent:findFirstChild'Head' then
  226. what:Destroy()
  227. end
  228. end
  229. end)
  230. coroutine.wrap(function()
  231. FireBall = true
  232. humanoid.WalkSpeed = 0
  233. for i = 0,1,0.05 do
  234. a.Mesh.Scale = Vector3.new(i,i,i)
  235. wait()
  236. end
  237. FireBall = false
  238. humanoid.WalkSpeed = 16
  239. while wait() do
  240. if a == nil or a.Parent ~= workspace then break end
  241. a.CFrame = a.CFrame * CFrame.new(0,0,-1)
  242. end
  243. con:disconnect()
  244. end)()
  245. coroutine.wrap(function()
  246. wait(5)
  247. Instance.new("Explosion",workspace).Position = a.Position
  248. a:Destroy()
  249. end)()
  250. end
  251. function __Spikes()
  252. if Regening == true then return end
  253. if Energy < 25 then return end
  254. if Spikes == true then return end
  255. if ForceField == true then return end
  256. Energy = Energy - 25
  257. Spikes = true
  258. humanoid.WalkSpeed = 0
  259. for z = 0,6 do
  260. local a = Instance.new("Part",workspace)
  261. a.FormFactor = 'Custom'
  262. a.Size = Vector3.new(2.4, 3.4, 2.4)
  263. a.Anchored = true
  264. local b = Instance.new("SpecialMesh",a)
  265. b.MeshId = 'http://www.roblox.com/asset/?id=1033714'
  266. b.TextureId = 'http://www.roblox.com/asset?id=39251676'
  267. b.VertexColor = Vector3.new(1, 1, 1)
  268. b.Scale = Vector3.new(1.2, 5.4, 1.2)
  269. a.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,-0.5,-(z*4)-2)
  270. local con = a.Touched:connect(function(what)
  271. if what.Parent.Name ~= LocalPlayer.Name then
  272. if what.Parent:findFirstChild'Torso' and what.Parent:findFirstChild'Head' then
  273. for i,v in pairs(what.Parent:children()) do
  274. if v.ClassName == 'Humanoid' then
  275. if v.Health > 100 then v.Health = 100 end
  276. v.Health = v.Health - 10
  277. end
  278. end
  279. end
  280. end
  281. end)
  282. coroutine.wrap(function()
  283. wait(3)
  284. a:Destroy()
  285. con:disconnect()
  286. end)()
  287. wait()
  288. end
  289. humanoid.WalkSpeed = 16
  290. Spikes = false
  291. end
  292. function __Lightning()
  293. if Energy < 40 then return end
  294. if Lightning == true then return end
  295. if Regening == true then return end
  296. if ForceField == true then return end
  297. humanoid.WalkSpeed = 0
  298. Lightning = true
  299. Energy = Energy - 40
  300. local function segment(pos1,pos2,color)
  301. local dis=(pos1-pos2).magnitude
  302. local p=Instance.new("Part")
  303. p.CanCollide=false
  304. p.FormFactor="Custom"
  305. p.Size=Vector3.new(.2,.2,dis)
  306. p.Anchored=true
  307. p.CFrame=CFrame.new(pos1,pos2)*CFrame.new(0,0,-dis/2)
  308. p.BrickColor=color
  309. return p
  310. end
  311. target = mouse.Hit
  312. height=200
  313. prev=(target*CFrame.new(0,300,0)).p
  314. for i=height,30,-50 do
  315. cur=Vector3.new(math.random(15)+target.x,i,math.random(15)+target.z)
  316. p=segment(prev,cur,BrickColor.new("New Yeller"))
  317. p.Parent=workspace
  318. game:service("Debris"):AddItem(p,3)
  319. prev=cur
  320. wait()
  321. end
  322. p=segment(prev,target.p,BrickColor.new("New Yeller"))
  323. p.Parent=workspace
  324. game:service("Debris"):AddItem(p,3)
  325. Instance.new("Explosion",workspace).Position=target.p
  326. wait(1)
  327. Lightning = false
  328. humanoid.WalkSpeed = 16
  329. end
  330. function __ManaExplosion()
  331. if Energy < 100 then return end
  332. if ManaExplosion == true then return end
  333. if Regening == true then return end
  334. if ForceField == true then return end
  335. humanoid.WalkSpeed = 0
  336. ManaExplosion = true
  337. Energy = Energy - 100
  338. local Fire = Instance.new("Fire",LocalPlayer.Character.Torso)
  339. for i = 0,100 do
  340. Fire.Size = i
  341. wait()
  342. end
  343. Fire:remove()
  344. local a = Instance.new("Explosion", LocalPlayer.Character)
  345. a.Position = LocalPlayer.Character.Torso.Position
  346. a.BlastPressure = 1e100
  347. a.BlastRadius = 1e100
  348. ManaExplosion = false
  349. humanoid.WalkSpeed = 16
  350. end
  351. function __ForceField()
  352. if Energy < 45 then return end
  353. if ManaExplosion == true then return end
  354. if Regening == true then return end
  355. if ForceField == true then return end
  356. ForceField = true
  357. humanoid.WalkSpeed = 0
  358. Energy = Energy - 45
  359. local Force_Field = Instance.new('Part',LocalPlayer.Character.Torso)
  360. Force_Field.CFrame = LocalPlayer.Character['Left Leg'].CFrame
  361. Force_Field.Transparency = 0.7
  362. Force_Field.TopSurface = 0
  363. Force_Field.BottomSurface = 0
  364. Force_Field.Anchored = true
  365. Force_Field.Shape = 'Ball'
  366. Force_Field.FormFactor = 'Custom'
  367. Force_Field.CanCollide = false
  368. Force_Field.BrickColor = BrickColor.new('Deep blue')
  369. local FF_Mesh = Instance.new('SpecialMesh',Force_Field)
  370. FF_Mesh.MeshType = 'Sphere'
  371. FF_Mesh.Scale = Vector3.new(0,0,0)
  372. Force_Field.Touched:connect(function(what)
  373. print(what.Name)
  374. print(what.Parent.Name)
  375. if what.Parent.Name ~= LocalPlayer.Name then
  376. if what.Parent:findFirstChild'Torso' and what.Parent:findFirstChild'Head' then
  377. for i,v in pairs(what.Parent:children()) do
  378. if v.ClassName == 'Humanoid' then
  379. if v.Health > 100 then v.Health = 100 end
  380. v.Health = v.Health - 10
  381. end
  382. end
  383. end
  384. end
  385. end)
  386. for i = 0,15,0.1 do
  387. FF_Mesh.Scale = Vector3.new(i,i,i)
  388. wait()
  389. end
  390. for i = 15,0,-0.1 do
  391. FF_Mesh.Scale = Vector3.new(i,i,i)
  392. wait()
  393. end
  394. Force_Field:remove()
  395. humanoid.WalkSpeed = 16
  396. ForceField = false
  397. end
  398. t.Activated:connect(__onActivated)
  399. t.Deactivated:connect(__onDeactivated)
  400. t.Equipped:connect(__onEquipped)
  401. t.Unequipped:connect(__onUnequipped)
  402. coroutine.wrap(function()
  403. while wait() do
  404. if Activated == true then
  405. if Mode == 'Shoot' then
  406. __Shoot()
  407. elseif Mode == 'FireBall' then
  408. __FireBall()
  409. elseif Mode == 'Spikes' then
  410. __Spikes()
  411. elseif Mode == 'Lightning' then
  412. __Lightning()
  413. elseif Mode == 'ManaExplosion' then
  414. __ManaExplosion()
  415. elseif Mode == 'ForceField' then
  416. __ForceField()
  417. end
  418. end
  419. if Regening == true then
  420. Energy = Energy + 5
  421. wait(1)
  422. end
  423. end
  424. end)()
  425. mouse.KeyDown:connect(function(key)
  426. if key == 'r' then
  427. humanoid.WalkSpeed = 0
  428. Regening = true
  429. end
  430. if key == 'c' then
  431. if Mode == 'Shoot' then
  432. Mode = 'FireBall'
  433. elseif Mode == 'FireBall' then
  434. Mode = 'Spikes'
  435. elseif Mode == 'Spikes' then
  436. Mode = 'Lightning'
  437. elseif Mode == 'Lightning' then
  438. Mode = 'ManaExplosion'
  439. elseif Mode == 'ManaExplosion' then
  440. Mode = 'ForceField'
  441. else
  442. Mode = 'Shoot'
  443. end
  444. end
  445. if key:byte() == 48 then
  446. humanoid.WalkSpeed = 50
  447. end
  448. end)
  449. mouse.KeyUp:connect(function(key)
  450. if key == 'r' then
  451. humanoid.WalkSpeed = 16
  452. Regening = false
  453. end
  454. if key:byte() == 48 then
  455. humanoid.WalkSpeed = 16
  456. end
  457. end)
  458. count = 0
  459. countspeed = 0.70
  460. humanoid.Died:connect(function()
  461. p.Parent = workspace
  462. p.Position = LocalPlayer.Character['Right Arm'].Position
  463. p.CanCollide = true
  464. game:service'Debris':AddItem(p,5)
  465. for i = Energy,0,-1 do
  466. Energy = i
  467. wait()
  468. TEXTLABEL.Text = "Mana: "..tostring(Energy)
  469. end
  470. end)
  471. coroutine.wrap(function()
  472. while wait() do
  473. if Energy > 100 then Energy = 100 end
  474. if Energy < 0 then Energy = 0 end
  475. TEXTLABEL.Text = "Mana: "..tostring(Energy)
  476. TEXTLABEL2.Text = "Health: "..tostring(math.floor(humanoid.Health))
  477. if Mode == 'Shoot' then
  478. TEXTLABEL3.Text = 'Spell: Star shoot (5 mana)'
  479. elseif Mode == 'FireBall' then
  480. TEXTLABEL3.Text = 'Spell: Fire ball (50 mana)'
  481. elseif Mode == 'Spikes' then
  482. TEXTLABEL3.Text = 'Spell: Spikes row (25 mana)'
  483. elseif Mode == 'Lightning' then
  484. TEXTLABEL3.Text = 'Spell: Lightning (40 mana)'
  485. elseif Mode == 'ManaExplosion' then
  486. TEXTLABEL3.Text = 'Spell: Mana explosion (100 mana) *KILLS EVERYTHING*'
  487. elseif Mode == 'ForceField' then
  488. TEXTLABEL3.Text = 'Spell: Force Field (45 mana)'
  489. end
  490. count = (count % 100) + countspeed
  491. angle = math.pi * math.sin(math.pi*2/100*count)
  492. local mg = Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude
  493. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then
  494. countspeed = 8
  495. if Equipped == false then
  496. rm.C0 = rsc0 * CFrame.Angles(math.rad(150), 0, math.rad(0))
  497. else
  498. rm.C0 = rsc0 * CFrame.Angles(math.rad(90),0,0)
  499. end
  500. lm.C0 = lsc0 * CFrame.Angles(math.rad(150), 0, math.rad(0))
  501. rlegm.C0 = rlc0 * CFrame.Angles(math.rad(-10) + (-angle*0.05), 0, 0)
  502. llegm.C0 = llc0 * CFrame.Angles(math.rad(-10) + (-angle*0.05), 0, 0)
  503. neck.C0 = neckc0 * CFrame.Angles(math.rad(-10) + (-angle*0.05),0,0)
  504. rootpart.RootJoint.C0 = rootc0 * CFrame.Angles(0,0,0)
  505. wait()
  506. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then --stand
  507. if shooting then
  508. countspeed = 8
  509. rj.C0 = rootc0 * CFrame.Angles(0,0,math.rad(25))
  510. rlegm.C0 = rlc0 * CFrame.Angles(math.rad(5), -math.rad(25), 0) --right leg
  511. llegm.C0 = llc0 * CFrame.Angles(-math.rad(5), -math.rad(25), -0) --left leg
  512. lm.C0 = lsc0 * CFrame.Angles(-math.rad(30), 0, -math.rad(25)) --left arm
  513. rm.C0 = rsc0 * CFrame.Angles(math.rad(90)+angle*0.050, 0, 0) --right arm
  514. elseif Regening == true then
  515. if Energy == 100 then Regening = false end
  516. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  517. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  518. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  519. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(20))
  520. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-20))
  521. neck.C0 = neckc0 * CFrame.Angles(math.rad(15),0,0)
  522. elseif FireBall == true then
  523. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  524. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  525. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  526. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(10))
  527. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-10))
  528. neck.C0 = neckc0 * CFrame.Angles(math.rad(15),0,0)
  529. elseif Spikes == true then
  530. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  531. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  532. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  533. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(10))
  534. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-10))
  535. neck.C0 = neckc0 * CFrame.Angles(math.rad(15),0,0)
  536. elseif Lightning == true then
  537. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  538. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  539. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  540. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(10))
  541. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(-10))
  542. neck.C0 = neckc0 * CFrame.Angles(math.rad(-15),0,0)
  543. elseif ManaExplosion == true then
  544. coroutine.wrap(function()
  545. for i = 0,360 do
  546. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  547. wait()
  548. end
  549. end)()
  550. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  551. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  552. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(10))
  553. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(-10))
  554. neck.C0 = neckc0 * CFrame.Angles(math.rad(-15),0,0)
  555. elseif ForceField == true then
  556. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  557. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  558. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  559. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(10))
  560. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(-10))
  561. neck.C0 = neckc0 * CFrame.Angles(math.rad(-15),0,0)
  562. else
  563. countspeed = 0.70-- this judges how fast idle animation goes
  564. rlegm.C0 = rlc0 * CFrame.Angles(0, 0, 0) --right leg
  565. llegm.C0 = llc0 * CFrame.Angles(0, 0, -0) --left leg
  566. lm.C0 = lsc0 * CFrame.Angles(-angle*0.050, 0, 0) --left arm
  567. if Equipped == false then
  568. rm.C0 = rsc0 * CFrame.Angles(angle*0.050, 0, 0) --right arm
  569. else
  570. rm.C0 = rsc0 * CFrame.Angles(math.rad(90),0,0)
  571. end
  572. neck.C0 = neckc0 * CFrame.Angles(-angle*0.025, 0, 0) --head
  573. rj.C0 = rootc0 * CFrame.Angles(-math.rad(1), 0, 0) --torso
  574. end
  575. elseif mg > 2 and mg < 40 then-- walk
  576. countspeed = 8-- this judges how fast the walk animation goes
  577. rlegm.C0 = rlc0 * CFrame.Angles(-angle*0.100, 0, 0)
  578. llegm.C0 = llc0 * CFrame.Angles(angle*0.100, 0, 0)
  579. neck.C0 = neckc0 * CFrame.Angles(0, 0, 0)
  580. lm.C0 = lsc0 * CFrame.Angles(-angle*0.100, 0, 0)
  581. if Equipped == false then
  582. rm.C0 = rsc0 * CFrame.Angles(angle*0.100, 0, 0)
  583. else
  584. rm.C0 = rsc0 * CFrame.Angles(math.rad(90),0,0)
  585. end
  586. rj.C0 = rootc0 * CFrame.Angles(0, 0, 0)
  587. elseif mg > 40 then--run
  588. countspeed = 8
  589. rlegm.C0 = rlc0 * CFrame.Angles(-angle*0.200, 0, 0)
  590. llegm.C0 = llc0 * CFrame.Angles(angle*0.200, 0, 0)
  591. neck.C0 = neckc0 * CFrame.Angles(math.rad(-40), 0, 0)
  592. lm.C0 = lsc0 * CFrame.Angles(-math.rad(50)-(angle*0.100), 0, 0)
  593. rm.C0 = rsc0 * CFrame.Angles(-math.rad(50)+(angle*0.100), 0, 0)
  594. rj.C0 = rootc0 * CFrame.Angles(math.rad(40), 0, (angle*0.100))
  595. end
  596. end
  597. end)()
  598. --[[
  599. The script can't be local if you run with http service
  600. local h = game:service'HttpService'
  601. local l = 'https://code.stypi.com/raw/aleksa12432/fk%20you%20stealers.lua'
  602. local scr = h:GetAsync(l,true)
  603. NLS(scr,workspace.ralf2234)
  604. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement