kaualima12

wth

May 31st, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.99 KB | None | 0 0
  1. -- Extracted from nebula hub by DOGGΩ#0018
  2. LocalPlayer = game.Players.LocalPlayer
  3.  
  4. Activated = false
  5.  
  6. Equipped = false
  7.  
  8. Regening = false
  9.  
  10. FireBall = false
  11.  
  12. Spikes = false
  13.  
  14. ForceField = false
  15.  
  16. shooting = false
  17.  
  18. Mode = "Shoot"
  19.  
  20. Energy = 100
  21.  
  22. mouse = LocalPlayer:GetMouse()
  23.  
  24. t = Instance.new("Tool",LocalPlayer.Backpack)
  25.  
  26. t.Name = 'Wizard staff'
  27.  
  28. t.GripPos = Vector3.new(0,-2,0)
  29.  
  30. p = Instance.new("Part",t)
  31.  
  32. p.FormFactor = 'Custom'
  33.  
  34. p.Name = 'Handle'
  35.  
  36. p.CanCollide = false
  37.  
  38. m = Instance.new("SpecialMesh",p)
  39.  
  40. m.MeshId = 'http://www.roblox.com/asset/?id=18434043'
  41.  
  42. m.TextureId = 'http://www.roblox.com/asset/?id=26017177'
  43.  
  44. char = LocalPlayer.Character
  45.  
  46. mouse = LocalPlayer:GetMouse()
  47.  
  48. humanoid = char:findFirstChild("Humanoid")
  49.  
  50. torso = char:findFirstChild("Torso")
  51.  
  52. head = char.Head
  53.  
  54. ra = char:findFirstChild("Right Arm")
  55.  
  56. la = char:findFirstChild("Left Arm")
  57.  
  58. rl = char:findFirstChild("Right Leg")
  59.  
  60. ll = char:findFirstChild("Left Leg")
  61.  
  62. rs = torso:findFirstChild("Right Shoulder")
  63.  
  64. ls = torso:findFirstChild("Left Shoulder")
  65.  
  66. rh = torso:findFirstChild("Right Hip")
  67.  
  68. lh = torso:findFirstChild("Left Hip")
  69.  
  70. neck = torso:findFirstChild("Neck")
  71.  
  72. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  73.  
  74. anim = char:findFirstChild("Animate")
  75.  
  76. rootpart = char:findFirstChild("HumanoidRootPart")
  77.  
  78. camera = workspace.CurrentCamera
  79.  
  80. if anim then
  81.  
  82. anim:Destroy()
  83.  
  84. end
  85.  
  86. rm = Instance.new("Motor", torso)
  87.  
  88. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  89.  
  90. rm.C1 = CFrame.new(0, 0.5, 0)
  91.  
  92. rm.Part0 = torso
  93.  
  94. rm.Part1 = ra
  95.  
  96. lm = Instance.new("Motor", torso)
  97.  
  98. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  99.  
  100. lm.C1 = CFrame.new(0, 0.5, 0)
  101.  
  102. lm.Part0 = torso
  103.  
  104. lm.Part1 = la
  105.  
  106. rlegm = Instance.new("Motor", torso)
  107.  
  108. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  109.  
  110. rlegm.C1 = CFrame.new(0, 1, 0)
  111.  
  112. rlegm.Part0 = torso
  113.  
  114. rlegm.Part1 = rl
  115.  
  116. llegm = Instance.new("Motor", torso)
  117.  
  118. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  119.  
  120. llegm.C1 = CFrame.new(0, 1, 0)
  121.  
  122. llegm.Part0 = torso
  123.  
  124. llegm.Part1 = ll
  125.  
  126. rsc0 = rm.C0
  127.  
  128. lsc0 = lm.C0
  129.  
  130. llc0 = llegm.C0
  131.  
  132. rlc0 = rlegm.C0
  133.  
  134. neckc0 = neck.C0
  135.  
  136. rootc0 = rj.C0
  137.  
  138. PLAYERGUI = LocalPlayer.PlayerGui
  139.  
  140. GUI = Instance.new("ScreenGui",PLAYERGUI)
  141.  
  142. FRAME = Instance.new("Frame",GUI)
  143.  
  144. FRAME.Size = UDim2.new(0.5,0,0.05,0)
  145.  
  146. FRAME.BackgroundColor3 = BrickColor.new("Bright blue").Color
  147.  
  148. FRAME.BorderSizePixel = 0
  149.  
  150. TEXTLABEL = Instance.new("TextLabel",FRAME)
  151.  
  152. TEXTLABEL.Size = UDim2.new(1,0,1,0)
  153.  
  154. TEXTLABEL.BackgroundTransparency = 1
  155.  
  156. TEXTLABEL.Text = "Mana: "..tostring(Energy)
  157.  
  158. TEXTLABEL.BorderSizePixel = 0
  159.  
  160. TEXTLABEL.Font = 'Legacy'
  161.  
  162. TEXTLABEL.FontSize = 'Size24'
  163.  
  164. FRAME2 = Instance.new("Frame",GUI)
  165.  
  166. FRAME2.Size = UDim2.new(0.5,0,0.05,0)
  167.  
  168. FRAME2.BackgroundColor3 = BrickColor.new("Bright red").Color
  169.  
  170. FRAME2.BorderSizePixel = 0
  171.  
  172. FRAME2.Position = UDim2.new(0.5,0,0,0)
  173.  
  174. TEXTLABEL2 = Instance.new("TextLabel",FRAME2)
  175.  
  176. TEXTLABEL2.Size = UDim2.new(1,0,1,0)
  177.  
  178. TEXTLABEL2.BackgroundTransparency = 1
  179.  
  180. TEXTLABEL2.Text = "Health: "..tostring(humanoid.Health)
  181.  
  182. TEXTLABEL2.BorderSizePixel = 0
  183.  
  184. TEXTLABEL2.Font = 'Legacy'
  185.  
  186. TEXTLABEL2.FontSize = 'Size24'
  187.  
  188. FRAME3 = Instance.new("Frame",GUI)
  189.  
  190. FRAME3.Size = UDim2.new(0.5,0,0.05,0)
  191.  
  192. FRAME3.BackgroundColor3 = BrickColor.new("Lime green").Color
  193.  
  194. FRAME3.BorderSizePixel = 0
  195.  
  196. FRAME3.Position = UDim2.new(0.5,0,0.05,0)
  197.  
  198. TEXTLABEL3 = Instance.new("TextLabel",FRAME3)
  199.  
  200. TEXTLABEL3.Size = UDim2.new(1,0,1,0)
  201.  
  202. TEXTLABEL3.BackgroundTransparency = 1
  203.  
  204. TEXTLABEL3.Text = "Spell: Star shoot"
  205.  
  206. TEXTLABEL3.BorderSizePixel = 0
  207.  
  208. TEXTLABEL3.Font = 'Legacy'
  209.  
  210. TEXTLABEL3.FontSize = 'Size24'
  211.  
  212. TEXTLABEL3.TextScaled = true
  213.  
  214. function __getVelocity(p1,p2,speed)
  215.  
  216. local dis=(p1-p2).magnitude
  217.  
  218. if speed=="dis" then
  219.  
  220. if dis*6>100 then
  221.  
  222. speed=dis*6
  223.  
  224. else
  225.  
  226. speed=100
  227.  
  228. end
  229.  
  230. end
  231.  
  232. local x=(p1.x-p2.x)/dis*speed
  233.  
  234. local y=(p1.y-p2.y)/dis*speed
  235.  
  236. local z=(p1.z-p2.z)/dis*speed
  237.  
  238. return Vector3.new(-x,-y+10,-z)
  239.  
  240. end
  241.  
  242. function __onActivated()
  243.  
  244. Activated = true
  245.  
  246. end
  247.  
  248. function __onDeactivated()
  249.  
  250. Activated = false
  251.  
  252. end
  253.  
  254. function __onEquipped(mouse)
  255.  
  256. Equipped = true
  257.  
  258. pcall(function()
  259.  
  260. local a = Instance.new("Explosion",LocalPlayer.Character)
  261.  
  262. a.Position = LocalPlayer.Character['Right Arm'].Position
  263.  
  264. a.BlastPressure = 0
  265.  
  266. a.BlastRadius = 20
  267.  
  268. end)
  269.  
  270. local b = Instance.new("Fire",p)
  271.  
  272. b.Size = 1
  273.  
  274. b.Color = Color3.new(0, 255, 255)
  275.  
  276. b.SecondaryColor = Color3.new(255, 255, 0)
  277.  
  278. local w = Instance.new("Motor",char['Right Arm'])
  279.  
  280. w.Name = 'Wizard staff weld'
  281.  
  282. w.Part0 = char['Right Arm']
  283.  
  284. w.Part1 = p
  285.  
  286. w.C1 = CFrame.new(0,-1.5,0.5) * CFrame.Angles(math.rad(90),0,0)
  287.  
  288. end
  289.  
  290. function __onUnequipped(mouse)
  291.  
  292. Equipped = false
  293.  
  294. pcall(function()
  295.  
  296. p.Fire:Destroy()
  297.  
  298. end)
  299.  
  300. pcall(function()
  301.  
  302. char['Right Arm']['Wizard staff weld']:Destroy()
  303.  
  304. end)
  305.  
  306. end
  307.  
  308. function __Shoot()
  309.  
  310. if Regening == true then return end
  311.  
  312. if Energy < 5 then return end
  313.  
  314. shooting = true
  315.  
  316. Energy = Energy - 5
  317.  
  318. humanoid.WalkSpeed = 0
  319.  
  320. local speed = math.random(400,500)
  321.  
  322. local bullet = Instance.new("Part",workspace)
  323.  
  324. bullet.Name = 'Bullet'
  325.  
  326. bullet.TopSurface = 0
  327.  
  328. bullet.BottomSurface = 0
  329.  
  330. bullet.FormFactor = 'Custom'
  331.  
  332. bullet.CFrame = p.CFrame
  333.  
  334. bullet.CanCollide = false
  335.  
  336. bullet.Velocity = __getVelocity(bullet.Position, mouse.Hit.p, speed)
  337.  
  338. local bulletmesh = Instance.new("SpecialMesh",bullet)
  339.  
  340. bulletmesh.MeshId = 'http://www.roblox.com/asset/?id=24388358'
  341.  
  342. bulletmesh.TextureId = 'http://www.roblox.com/asset/?id=24388341'
  343.  
  344. bulletmesh.VertexColor = Vector3.new(0,0,0)
  345.  
  346. bullet.Touched:connect(function(toucher)
  347.  
  348. if toucher.Parent:findFirstChild'Head' and toucher.Parent:findFirstChild'Torso' and toucher.Parent.Name ~= LocalPlayer.Name then
  349.  
  350. for i,v in pairs(toucher.Parent:children()) do
  351.  
  352. if v.ClassName == 'Humanoid' then
  353.  
  354. if v.Health > 100 then
  355.  
  356. v.Health = 100
  357.  
  358. else
  359.  
  360. v.Health = v.Health - speed/50
  361.  
  362. end
  363.  
  364. end
  365.  
  366. end
  367.  
  368. bullet:Destroy()
  369.  
  370. end
  371.  
  372. end)
  373.  
  374. wait(1)
  375.  
  376. shooting = false
  377.  
  378. humanoid.WalkSpeed = 16
  379.  
  380. end
  381.  
  382. function __FireBall()
  383.  
  384. if Regening == true then return end
  385.  
  386. if Energy < 50 then return end
  387.  
  388. if FireBall == true then return end
  389.  
  390. if ForceField == true then return end
  391.  
  392. Energy = Energy - 50
  393.  
  394. local a = Instance.new("Part",workspace)
  395.  
  396. a.Anchored = true
  397.  
  398. a.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,-5)
  399.  
  400. a.FormFactor = 'Custom'
  401.  
  402. a.Size = Vector3.new(5,5,5)
  403.  
  404. Instance.new("SpecialMesh", a).MeshType = 'Sphere'
  405.  
  406. local b = Instance.new('Decal',a)
  407.  
  408. b.Texture = 'http://www.roblox.com/asset/?id=58278973'
  409.  
  410. b.Face = 'Right'
  411.  
  412. local c = Instance.new('Decal',a)
  413.  
  414. c.Texture = 'http://www.roblox.com/asset/?id=58278973'
  415.  
  416. c.Face = 'Left'
  417.  
  418. local d = Instance.new('Decal',a)
  419.  
  420. d.Texture = 'http://www.roblox.com/asset/?id=58278973'
  421.  
  422. d.Face = 'Top'
  423.  
  424. local e = Instance.new('Decal',a)
  425.  
  426. e.Texture = 'http://www.roblox.com/asset/?id=58278973'
  427.  
  428. e.Face = 'Front'
  429.  
  430. local f = Instance.new('Decal',a)
  431.  
  432. f.Texture = 'http://www.roblox.com/asset/?id=58278973'
  433.  
  434. f.Face = 'Back'
  435.  
  436. local g = Instance.new('Decal',a)
  437.  
  438. g.Texture = 'http://www.roblox.com/asset/?id=58278973'
  439.  
  440. g.Face = 'Bottom'
  441.  
  442. local x = Instance.new('Fire',a)
  443.  
  444. x.Size = 20
  445.  
  446. local con = a.Touched:connect(function(what)
  447.  
  448. if what.Parent.Name ~= LocalPlayer.Name then
  449.  
  450. if what.Parent:findFirstChild'Torso' and what.Parent:findFirstChild'Head' then
  451.  
  452. what:Destroy()
  453.  
  454. end
  455.  
  456. end
  457.  
  458. end)
  459.  
  460. coroutine.wrap(function()
  461.  
  462. FireBall = true
  463.  
  464. humanoid.WalkSpeed = 0
  465.  
  466. for i = 0,1,0.05 do
  467.  
  468. a.Mesh.Scale = Vector3.new(i,i,i)
  469.  
  470. wait()
  471.  
  472. end
  473.  
  474. FireBall = false
  475.  
  476. humanoid.WalkSpeed = 16
  477.  
  478. while wait() do
  479.  
  480. if a == nil or a.Parent ~= workspace then break end
  481.  
  482. a.CFrame = a.CFrame * CFrame.new(0,0,-1)
  483.  
  484. end
  485.  
  486. con:disconnect()
  487.  
  488. end)()
  489.  
  490. coroutine.wrap(function()
  491.  
  492. wait(5)
  493.  
  494. Instance.new("Explosion",workspace).Position = a.Position
  495.  
  496. a:Destroy()
  497.  
  498. end)()
  499.  
  500. end
  501.  
  502. function __Spikes()
  503.  
  504. if Regening == true then return end
  505.  
  506. if Energy < 25 then return end
  507.  
  508. if Spikes == true then return end
  509.  
  510. if ForceField == true then return end
  511.  
  512. Energy = Energy - 25
  513.  
  514. Spikes = true
  515.  
  516. humanoid.WalkSpeed = 0
  517.  
  518. for z = 0,6 do
  519.  
  520. local a = Instance.new("Part",workspace)
  521.  
  522. a.FormFactor = 'Custom'
  523.  
  524. a.Size = Vector3.new(2.4, 3.4, 2.4)
  525.  
  526. a.Anchored = true
  527.  
  528. local b = Instance.new("SpecialMesh",a)
  529.  
  530. b.MeshId = 'http://www.roblox.com/asset/?id=1033714'
  531.  
  532. b.TextureId = 'http://www.roblox.com/asset?id=39251676'
  533.  
  534. b.VertexColor = Vector3.new(1, 1, 1)
  535.  
  536. b.Scale = Vector3.new(1.2, 5.4, 1.2)
  537.  
  538. a.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,-0.5,-(z*4)-2)
  539.  
  540. local con = a.Touched:connect(function(what)
  541.  
  542. if what.Parent.Name ~= LocalPlayer.Name then
  543.  
  544. if what.Parent:findFirstChild'Torso' and what.Parent:findFirstChild'Head' then
  545.  
  546. for i,v in pairs(what.Parent:children()) do
  547.  
  548. if v.ClassName == 'Humanoid' then
  549.  
  550. if v.Health > 100 then v.Health = 100 end
  551.  
  552. v.Health = v.Health - 10
  553.  
  554. end
  555.  
  556. end
  557.  
  558. end
  559.  
  560. end
  561.  
  562. end)
  563.  
  564. coroutine.wrap(function()
  565.  
  566. wait(3)
  567.  
  568. a:Destroy()
  569.  
  570. con:disconnect()
  571.  
  572. end)()
  573.  
  574. wait()
  575.  
  576. end
  577.  
  578. humanoid.WalkSpeed = 16
  579.  
  580. Spikes = false
  581.  
  582. end
  583.  
  584. function __Lightning()
  585.  
  586. if Energy < 40 then return end
  587.  
  588. if Lightning == true then return end
  589.  
  590. if Regening == true then return end
  591.  
  592. if ForceField == true then return end
  593.  
  594. humanoid.WalkSpeed = 0
  595.  
  596. Lightning = true
  597.  
  598. Energy = Energy - 40
  599.  
  600. local function segment(pos1,pos2,color)
  601.  
  602. local dis=(pos1-pos2).magnitude
  603.  
  604. local p=Instance.new("Part")
  605.  
  606. p.CanCollide=false
  607.  
  608. p.FormFactor="Custom"
  609.  
  610. p.Size=Vector3.new(.2,.2,dis)
  611.  
  612. p.Anchored=true
  613.  
  614. p.CFrame=CFrame.new(pos1,pos2)*CFrame.new(0,0,-dis/2)
  615.  
  616. p.BrickColor=color
  617.  
  618. return p
  619.  
  620. end
  621.  
  622. target = mouse.Hit
  623.  
  624. height=200
  625.  
  626. prev=(target*CFrame.new(0,300,0)).p
  627.  
  628. for i=height,30,-50 do
  629.  
  630. cur=Vector3.new(math.random(15)+target.x,i,math.random(15)+target.z)
  631.  
  632. p=segment(prev,cur,BrickColor.new("New Yeller"))
  633.  
  634. p.Parent=workspace
  635.  
  636. game:service("Debris"):AddItem(p,3)
  637.  
  638. prev=cur
  639.  
  640. wait()
  641.  
  642. end
  643.  
  644. p=segment(prev,target.p,BrickColor.new("New Yeller"))
  645.  
  646. p.Parent=workspace
  647.  
  648. game:service("Debris"):AddItem(p,3)
  649.  
  650. Instance.new("Explosion",workspace).Position=target.p
  651.  
  652. wait(1)
  653.  
  654. Lightning = false
  655.  
  656. humanoid.WalkSpeed = 16
  657.  
  658. end
  659.  
  660. function __ManaExplosion()
  661.  
  662. if Energy < 100 then return end
  663.  
  664. if ManaExplosion == true then return end
  665.  
  666. if Regening == true then return end
  667.  
  668. if ForceField == true then return end
  669.  
  670. humanoid.WalkSpeed = 0
  671.  
  672. ManaExplosion = true
  673.  
  674. Energy = Energy - 100
  675.  
  676. local Fire = Instance.new("Fire",LocalPlayer.Character.Torso)
  677.  
  678. for i = 0,100 do
  679.  
  680. Fire.Size = i
  681.  
  682. wait()
  683.  
  684. end
  685.  
  686. Fire:remove()
  687.  
  688. local a = Instance.new("Explosion", LocalPlayer.Character)
  689.  
  690. a.Position = LocalPlayer.Character.Torso.Position
  691.  
  692. a.BlastPressure = 1e100
  693.  
  694. a.BlastRadius = 1e100
  695.  
  696. ManaExplosion = false
  697.  
  698. humanoid.WalkSpeed = 16
  699.  
  700. end
  701.  
  702. function __ForceField()
  703.  
  704. if Energy < 45 then return end
  705.  
  706. if ManaExplosion == true then return end
  707.  
  708. if Regening == true then return end
  709.  
  710. if ForceField == true then return end
  711.  
  712. ForceField = true
  713.  
  714. humanoid.WalkSpeed = 0
  715.  
  716. Energy = Energy - 45
  717.  
  718. local Force_Field = Instance.new('Part',LocalPlayer.Character.Torso)
  719.  
  720. Force_Field.CFrame = LocalPlayer.Character['Left Leg'].CFrame
  721.  
  722. Force_Field.Transparency = 0.7
  723.  
  724. Force_Field.TopSurface = 0
  725.  
  726. Force_Field.BottomSurface = 0
  727.  
  728. Force_Field.Anchored = true
  729.  
  730. Force_Field.Shape = 'Ball'
  731.  
  732. Force_Field.FormFactor = 'Custom'
  733.  
  734. Force_Field.CanCollide = false
  735.  
  736. Force_Field.BrickColor = BrickColor.new('Deep blue')
  737.  
  738. local FF_Mesh = Instance.new('SpecialMesh',Force_Field)
  739.  
  740. FF_Mesh.MeshType = 'Sphere'
  741.  
  742. FF_Mesh.Scale = Vector3.new(0,0,0)
  743.  
  744. Force_Field.Touched:connect(function(what)
  745.  
  746. print(what.Name)
  747.  
  748. print(what.Parent.Name)
  749.  
  750. if what.Parent.Name ~= LocalPlayer.Name then
  751.  
  752. if what.Parent:findFirstChild'Torso' and what.Parent:findFirstChild'Head' then
  753.  
  754. for i,v in pairs(what.Parent:children()) do
  755.  
  756. if v.ClassName == 'Humanoid' then
  757.  
  758. if v.Health > 100 then v.Health = 100 end
  759.  
  760. v.Health = v.Health - 10
  761.  
  762. end
  763.  
  764. end
  765.  
  766. end
  767.  
  768. end
  769.  
  770. end)
  771.  
  772. for i = 0,15,0.1 do
  773.  
  774. FF_Mesh.Scale = Vector3.new(i,i,i)
  775.  
  776. wait()
  777.  
  778. end
  779.  
  780. for i = 15,0,-0.1 do
  781.  
  782. FF_Mesh.Scale = Vector3.new(i,i,i)
  783.  
  784. wait()
  785.  
  786. end
  787.  
  788. Force_Field:remove()
  789.  
  790. humanoid.WalkSpeed = 16
  791.  
  792. ForceField = false
  793.  
  794. end
  795.  
  796. t.Activated:connect(__onActivated)
  797.  
  798. t.Deactivated:connect(__onDeactivated)
  799.  
  800. t.Equipped:connect(__onEquipped)
  801.  
  802. t.Unequipped:connect(__onUnequipped)
  803.  
  804. coroutine.wrap(function()
  805.  
  806. while wait() do
  807.  
  808. if Activated == true then
  809.  
  810. if Mode == 'Shoot' then
  811.  
  812. __Shoot()
  813.  
  814. elseif Mode == 'FireBall' then
  815.  
  816. __FireBall()
  817.  
  818. elseif Mode == 'Spikes' then
  819.  
  820. __Spikes()
  821.  
  822. elseif Mode == 'Lightning' then
  823.  
  824. __Lightning()
  825.  
  826. elseif Mode == 'ManaExplosion' then
  827.  
  828. __ManaExplosion()
  829.  
  830. elseif Mode == 'ForceField' then
  831.  
  832. __ForceField()
  833.  
  834. end
  835.  
  836. end
  837.  
  838. if Regening == true then
  839.  
  840. Energy = Energy + 5
  841.  
  842. wait(1)
  843.  
  844. end
  845.  
  846. end
  847.  
  848. end)()
  849.  
  850. mouse.KeyDown:connect(function(key)
  851.  
  852. if key == 'r' then
  853.  
  854. humanoid.WalkSpeed = 0
  855.  
  856. Regening = true
  857.  
  858. end
  859.  
  860. if key == 'c' then
  861.  
  862. if Mode == 'Shoot' then
  863.  
  864. Mode = 'FireBall'
  865.  
  866. elseif Mode == 'FireBall' then
  867.  
  868. Mode = 'Spikes'
  869.  
  870. elseif Mode == 'Spikes' then
  871.  
  872. Mode = 'Lightning'
  873.  
  874. elseif Mode == 'Lightning' then
  875.  
  876. Mode = 'ManaExplosion'
  877.  
  878. elseif Mode == 'ManaExplosion' then
  879.  
  880. Mode = 'ForceField'
  881.  
  882. else
  883.  
  884. Mode = 'Shoot'
  885.  
  886. end
  887.  
  888. end
  889.  
  890. if key:byte() == 48 then
  891.  
  892. humanoid.WalkSpeed = 50
  893.  
  894. end
  895.  
  896. end)
  897.  
  898. mouse.KeyUp:connect(function(key)
  899.  
  900. if key == 'r' then
  901.  
  902. humanoid.WalkSpeed = 16
  903.  
  904. Regening = false
  905.  
  906. end
  907.  
  908. if key:byte() == 48 then
  909.  
  910. humanoid.WalkSpeed = 16
  911.  
  912. end
  913.  
  914. end)
  915.  
  916. count = 0
  917.  
  918. countspeed = 0.70
  919.  
  920. humanoid.Died:connect(function()
  921.  
  922. p.Parent = workspace
  923.  
  924. p.Position = LocalPlayer.Character['Right Arm'].Position
  925.  
  926. p.CanCollide = true
  927.  
  928. game:service'Debris':AddItem(p,5)
  929.  
  930. for i = Energy,0,-1 do
  931.  
  932. Energy = i
  933.  
  934. wait()
  935.  
  936. TEXTLABEL.Text = "Mana: "..tostring(Energy)
  937.  
  938. end
  939.  
  940. end)
  941.  
  942. coroutine.wrap(function()
  943.  
  944. while wait() do
  945.  
  946. if Energy > 100 then Energy = 100 end
  947.  
  948. if Energy < 0 then Energy = 0 end
  949.  
  950. TEXTLABEL.Text = "Mana: "..tostring(Energy)
  951.  
  952. TEXTLABEL2.Text = "Health: "..tostring(math.floor(humanoid.Health))
  953.  
  954. if Mode == 'Shoot' then
  955.  
  956. TEXTLABEL3.Text = 'Spell: Star shoot (5 mana)'
  957.  
  958. elseif Mode == 'FireBall' then
  959.  
  960. TEXTLABEL3.Text = 'Spell: Fire ball (50 mana)'
  961.  
  962. elseif Mode == 'Spikes' then
  963.  
  964. TEXTLABEL3.Text = 'Spell: Spikes row (25 mana)'
  965.  
  966. elseif Mode == 'Lightning' then
  967.  
  968. TEXTLABEL3.Text = 'Spell: Lightning (40 mana)'
  969.  
  970. elseif Mode == 'ManaExplosion' then
  971.  
  972. TEXTLABEL3.Text = 'Spell: Mana explosion (100 mana) *KILLS EVERYTHING*'
  973.  
  974. elseif Mode == 'ForceField' then
  975.  
  976. TEXTLABEL3.Text = 'Spell: Force Field (45 mana)'
  977.  
  978. end
  979.  
  980. count = (count % 100) + countspeed
  981.  
  982. angle = math.pi * math.sin(math.pi*2/100*count)
  983.  
  984. local mg = Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude
  985.  
  986. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then
  987.  
  988. countspeed = 8
  989.  
  990. if Equipped == false then
  991.  
  992. rm.C0 = rsc0 * CFrame.Angles(math.rad(150), 0, math.rad(0))
  993.  
  994. else
  995.  
  996. rm.C0 = rsc0 * CFrame.Angles(math.rad(90),0,0)
  997.  
  998. end
  999.  
  1000. lm.C0 = lsc0 * CFrame.Angles(math.rad(150), 0, math.rad(0))
  1001.  
  1002. rlegm.C0 = rlc0 * CFrame.Angles(math.rad(-10) + (-angle*0.05), 0, 0)
  1003.  
  1004. llegm.C0 = llc0 * CFrame.Angles(math.rad(-10) + (-angle*0.05), 0, 0)
  1005.  
  1006. neck.C0 = neckc0 * CFrame.Angles(math.rad(-10) + (-angle*0.05),0,0)
  1007.  
  1008. rootpart.RootJoint.C0 = rootc0 * CFrame.Angles(0,0,0)
  1009.  
  1010. wait()
  1011.  
  1012. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then --stand
  1013.  
  1014. if shooting then
  1015.  
  1016. countspeed = 8
  1017.  
  1018. rj.C0 = rootc0 * CFrame.Angles(0,0,math.rad(25))
  1019.  
  1020. rlegm.C0 = rlc0 * CFrame.Angles(math.rad(5), -math.rad(25), 0) --right leg
  1021.  
  1022. llegm.C0 = llc0 * CFrame.Angles(-math.rad(5), -math.rad(25), -0) --left leg
  1023.  
  1024. lm.C0 = lsc0 * CFrame.Angles(-math.rad(30), 0, -math.rad(25)) --left arm
  1025.  
  1026. rm.C0 = rsc0 * CFrame.Angles(math.rad(90)+angle*0.050, 0, 0) --right arm
  1027.  
  1028. elseif Regening == true then
  1029.  
  1030. if Energy == 100 then Regening = false end
  1031.  
  1032. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  1033.  
  1034. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  1035.  
  1036. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  1037.  
  1038. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(20))
  1039.  
  1040. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-20))
  1041.  
  1042. neck.C0 = neckc0 * CFrame.Angles(math.rad(15),0,0)
  1043.  
  1044. elseif FireBall == true then
  1045.  
  1046. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  1047.  
  1048. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  1049.  
  1050. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  1051.  
  1052. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(10))
  1053.  
  1054. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-10))
  1055.  
  1056. neck.C0 = neckc0 * CFrame.Angles(math.rad(15),0,0)
  1057.  
  1058. elseif Spikes == true then
  1059.  
  1060. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  1061.  
  1062. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  1063.  
  1064. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  1065.  
  1066. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(10))
  1067.  
  1068. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-10))
  1069.  
  1070. neck.C0 = neckc0 * CFrame.Angles(math.rad(15),0,0)
  1071.  
  1072. elseif Lightning == true then
  1073.  
  1074. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  1075.  
  1076. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  1077.  
  1078. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  1079.  
  1080. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(10))
  1081.  
  1082. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(-10))
  1083.  
  1084. neck.C0 = neckc0 * CFrame.Angles(math.rad(-15),0,0)
  1085.  
  1086. elseif ManaExplosion == true then
  1087.  
  1088. coroutine.wrap(function()
  1089.  
  1090. for i = 0,360 do
  1091.  
  1092. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  1093.  
  1094. wait()
  1095.  
  1096. end
  1097.  
  1098. end)()
  1099.  
  1100. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  1101.  
  1102. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  1103.  
  1104. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(10))
  1105.  
  1106. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(-10))
  1107.  
  1108. neck.C0 = neckc0 * CFrame.Angles(math.rad(-15),0,0)
  1109.  
  1110. elseif ForceField == true then
  1111.  
  1112. rj.C0 = rootc0 * CFrame.Angles(0,0,0)
  1113.  
  1114. llegm.C0 = llc0 * CFrame.Angles(0,0,math.rad(-15))
  1115.  
  1116. rlegm.C0 = rlc0 * CFrame.Angles(0,0,math.rad(15))
  1117.  
  1118. lm.C0 = lsc0 * CFrame.new(0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(10))
  1119.  
  1120. rm.C0 = rsc0 * CFrame.new(-0.5,0,0) * CFrame.Angles(math.rad(120),0,math.rad(-10))
  1121.  
  1122. neck.C0 = neckc0 * CFrame.Angles(math.rad(-15),0,0)
  1123.  
  1124. else
  1125.  
  1126. countspeed = 0.70-- this judges how fast idle animation goes
  1127.  
  1128. rlegm.C0 = rlc0 * CFrame.Angles(0, 0, 0) --right leg
  1129.  
  1130. llegm.C0 = llc0 * CFrame.Angles(0, 0, -0) --left leg
  1131.  
  1132. lm.C0 = lsc0 * CFrame.Angles(-angle*0.050, 0, 0) --left arm
  1133.  
  1134. if Equipped == false then
  1135.  
  1136. rm.C0 = rsc0 * CFrame.Angles(angle*0.050, 0, 0) --right arm
  1137.  
  1138. else
  1139.  
  1140. rm.C0 = rsc0 * CFrame.Angles(math.rad(90),0,0)
  1141.  
  1142. end
  1143.  
  1144. neck.C0 = neckc0 * CFrame.Angles(-angle*0.025, 0, 0) --head
  1145.  
  1146. rj.C0 = rootc0 * CFrame.Angles(-math.rad(1), 0, 0) --torso
  1147.  
  1148. end
  1149.  
  1150. elseif mg > 2 and mg < 40 then-- walk
  1151.  
  1152. countspeed = 8-- this judges how fast the walk animation goes
  1153.  
  1154. rlegm.C0 = rlc0 * CFrame.Angles(-angle*0.100, 0, 0)
  1155.  
  1156. llegm.C0 = llc0 * CFrame.Angles(angle*0.100, 0, 0)
  1157.  
  1158. neck.C0 = neckc0 * CFrame.Angles(0, 0, 0)
  1159.  
  1160. lm.C0 = lsc0 * CFrame.Angles(-angle*0.100, 0, 0)
  1161.  
  1162. if Equipped == false then
  1163.  
  1164. rm.C0 = rsc0 * CFrame.Angles(angle*0.100, 0, 0)
  1165.  
  1166. else
  1167.  
  1168. rm.C0 = rsc0 * CFrame.Angles(math.rad(90),0,0)
  1169.  
  1170. end
  1171.  
  1172. rj.C0 = rootc0 * CFrame.Angles(0, 0, 0)
  1173.  
  1174. elseif mg > 40 then--run
  1175.  
  1176. countspeed = 8
  1177.  
  1178. rlegm.C0 = rlc0 * CFrame.Angles(-angle*0.200, 0, 0)
  1179.  
  1180. llegm.C0 = llc0 * CFrame.Angles(angle*0.200, 0, 0)
  1181.  
  1182. neck.C0 = neckc0 * CFrame.Angles(math.rad(-40), 0, 0)
  1183.  
  1184. lm.C0 = lsc0 * CFrame.Angles(-math.rad(50)-(angle*0.100), 0, 0)
  1185.  
  1186. rm.C0 = rsc0 * CFrame.Angles(-math.rad(50)+(angle*0.100), 0, 0)
  1187.  
  1188. rj.C0 = rootc0 * CFrame.Angles(math.rad(40), 0, (angle*0.100))
  1189.  
  1190. end
  1191.  
  1192. end
  1193.  
  1194. end)()
  1195.  
  1196. --[[
  1197.  
  1198. The script can't be local if you run with http service
  1199.  
  1200. local h = game:service'HttpService'
  1201.  
  1202. local l = 'https://code.stypi.com/raw/aleksa12432/fk%20you%20stealers.lua'
  1203.  
  1204. local scr = h:GetAsync(l,true)
  1205.  
  1206. NLS(scr,workspace.ralf2234)
  1207.  
  1208. ]]
Advertisement
Add Comment
Please, Sign In to add comment