DylanD2003

Untitled

Oct 18th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.88 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(self,k)
  5. if k=="script" then
  6. return var
  7. else
  8. return env[k]
  9. end
  10. end,
  11. })
  12. setfenv(func,newenv)
  13. return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Tool0 = Instance.new("Tool")
  18. BoolValue1 = Instance.new("BoolValue")
  19. NumberValue2 = Instance.new("NumberValue")
  20. ScreenGui3 = Instance.new("ScreenGui")
  21. TextLabel4 = Instance.new("TextLabel")
  22. TextLabel5 = Instance.new("TextLabel")
  23. Script6 = Instance.new("Script")
  24. Part7 = Instance.new("Part")
  25. SpecialMesh8 = Instance.new("SpecialMesh")
  26. Fire9 = Instance.new("Fire")
  27. Script10 = Instance.new("Script")
  28. Weld11 = Instance.new("Weld")
  29. Part12 = Instance.new("Part")
  30. SpecialMesh13 = Instance.new("SpecialMesh")
  31. Fire14 = Instance.new("Fire")
  32. Script15 = Instance.new("Script")
  33. Weld16 = Instance.new("Weld")
  34. Part17 = Instance.new("Part")
  35. SpecialMesh18 = Instance.new("SpecialMesh")
  36. Fire19 = Instance.new("Fire")
  37. Script20 = Instance.new("Script")
  38. Weld21 = Instance.new("Weld")
  39. Part22 = Instance.new("Part")
  40. SpecialMesh23 = Instance.new("SpecialMesh")
  41. Fire24 = Instance.new("Fire")
  42. Script25 = Instance.new("Script")
  43. Weld26 = Instance.new("Weld")
  44. Script27 = Instance.new("Script")
  45. Part28 = Instance.new("Part")
  46. SpecialMesh29 = Instance.new("SpecialMesh")
  47. Fire30 = Instance.new("Fire")
  48. Script31 = Instance.new("Script")
  49. Weld32 = Instance.new("Weld")
  50. Part33 = Instance.new("Part")
  51. SpecialMesh34 = Instance.new("SpecialMesh")
  52. Fire35 = Instance.new("Fire")
  53. Script36 = Instance.new("Script")
  54. Weld37 = Instance.new("Weld")
  55. Part38 = Instance.new("Part")
  56. SpecialMesh39 = Instance.new("SpecialMesh")
  57. Fire40 = Instance.new("Fire")
  58. Script41 = Instance.new("Script")
  59. Weld42 = Instance.new("Weld")
  60. Part43 = Instance.new("Part")
  61. SpecialMesh44 = Instance.new("SpecialMesh")
  62. Fire45 = Instance.new("Fire")
  63. Script46 = Instance.new("Script")
  64. Script47 = Instance.new("Script")
  65. Script48 = Instance.new("Script")
  66. LocalScript49 = Instance.new("LocalScript")
  67. Tool0.Name = "Atratea"
  68. Tool0.Parent = mas
  69. Tool0.TextureId = "http://www.roblox.com/asset/?id=37084302"
  70. Tool0.GripForward = Vector3.new(-1, 0, -0)
  71. Tool0.GripPos = Vector3.new(0, 0.5, 0)
  72. Tool0.GripRight = Vector3.new(0, 0, -1)
  73. BoolValue1.Name = "Working"
  74. BoolValue1.Parent = Tool0
  75. NumberValue2.Name = "Mode"
  76. NumberValue2.Parent = Tool0
  77. NumberValue2.Value = 2
  78. ScreenGui3.Name = "ModeGui"
  79. ScreenGui3.Parent = Tool0
  80. TextLabel4.Name = "Mode"
  81. TextLabel4.Parent = ScreenGui3
  82. TextLabel4.Size = UDim2.new(0, 100, 0, 50)
  83. TextLabel4.Text = "Beam"
  84. TextLabel4.Position = UDim2.new(0, 50, 0.665000021, 0)
  85. TextLabel4.BackgroundColor3 = Color3.new(0, 0, 0.4)
  86. TextLabel4.BorderColor3 = Color3.new(0, 0, 0)
  87. TextLabel4.FontSize = Enum.FontSize.Size14
  88. TextLabel4.TextColor3 = Color3.new(0, 0, 0)
  89. TextLabel5.Name = "Label"
  90. TextLabel5.Parent = TextLabel4
  91. TextLabel5.Transparency = 1
  92. TextLabel5.Text = "Use 'E' to switch"
  93. TextLabel5.Position = UDim2.new(0.5, 0, -0.125, 0)
  94. TextLabel5.BackgroundColor3 = Color3.new(0.0313726, 0.0313726, 0.0313726)
  95. TextLabel5.BackgroundTransparency = 1
  96. TextLabel5.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  97. TextLabel5.FontSize = Enum.FontSize.Size10
  98. TextLabel5.TextColor3 = Color3.new(1, 1, 0.196078)
  99. Script6.Name = "Damage"
  100. Script6.Parent = Tool0
  101. Script6.Disabled = true
  102. table.insert(cors,sandbox(Script6,function()
  103. canhit=true
  104.  
  105. function tagHumanoid(humanoid, player)
  106. local creator_tag = Instance.new("ObjectValue")
  107. creator_tag.Value = player
  108. creator_tag.Name = "creator"
  109. creator_tag.Parent = humanoid
  110. end
  111.  
  112. function untagHumanoid(humanoid)
  113. if humanoid ~= nil then
  114. local tag = humanoid:findFirstChild("creator")
  115. if tag ~= nil then
  116. tag.Parent = nil
  117. end
  118. end
  119. end
  120.  
  121. function Particles(part)
  122. for k=1, 4 do
  123. s=Instance.new("Part")
  124. s.CanCollide=false
  125. s.TopSurface="Smooth"
  126. s.BottomSurface="Smooth"
  127. s.formFactor="Plate"
  128. s.Shape="Block"
  129. s.Size=Vector3.new(1,0.4,1)
  130. s.Transparency=0.3
  131. s.Reflectance=0.4
  132. s.Friction=0.3
  133. s.CFrame=part.CFrame
  134. s.BrickColor=part.BrickColor
  135. sm=Instance.new("BodyVelocity")
  136. sm.P=2000
  137. sm.velocity=Vector3.new(math.random(-7.5,7.5),math.random(7.5,11),math.random(-7.5,7.5))
  138. sm.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  139. sm.Parent=s
  140. s.RotVelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  141. s.Parent=game.Workspace
  142. game:GetService("Debris"):AddItem(s,1.25)
  143. game:GetService("Debris"):AddItem(sm,.3)
  144. end
  145. end
  146.  
  147. function onTouched(hit)
  148. local MAN = script.Parent.Parent.Parent
  149. local BIGMAN = game.Players:playerFromCharacter(MAN)
  150. local human = hit.Parent:FindFirstChild("Humanoid")
  151. if canhit==true then
  152. print("The shot hit " ..hit.Name ..", a child of " ..hit.Parent.Name ..".")
  153. if (human ~= nil and human.Health>0 and hit.Parent~=MAN) then
  154. canhit=false
  155. chance=math.random(1,5)
  156. if chance~=2 then
  157. tagHumanoid(human, BIGMAN)
  158. coroutine.resume(coroutine.create(function(Part,CF) wait(1) untagHumanoid(human) end),human)
  159. human.Health = human.Health - script.Charge.Value
  160. print("Hit!")
  161. script.Parent.Anchored=true
  162. script.Parent.Mesh.Scale=Vector3.new(0.1,0.1,0.1)
  163.  
  164. icechance=math.random(1,4)
  165.  
  166. if icechance==2 then
  167.  
  168. --------
  169.  
  170. local torso=human.Parent:FindFirstChild("Torso")
  171. human.WalkSpeed=0
  172. wait()
  173. bp = Instance.new("BodyPosition")
  174. bp.Name="FreezeHere"
  175. bp.P = 1e+004
  176. bp.D = 1e+003
  177. bp.Parent = torso
  178. bp.maxForce=Vector3.new(1e+008, 1e+008, 1e+008)
  179. bp.position=torso.Position
  180. P=Instance.new("Part")
  181. P.CanCollide=false
  182. P.Anchored=false
  183. P.Name="IceBlock"
  184. P.Shape="Block"
  185. P.TopSurface="Smooth"
  186. P.BottomSurface="Smooth"
  187. P.Transparency=0.3
  188. P.Reflectance=0.3
  189. P.Size=Vector3.new(5,7,5)
  190. P.CFrame=torso.CFrame
  191. P.Parent=torso.Parent
  192. w = Instance.new("Weld")
  193. w.Name="WELDAH"
  194. w.Parent = torso
  195. w.Part0 = w.Parent
  196. w.Part1 = P
  197. w.C0 = CFrame.new(0, 0, 0)
  198. Th=script.Thaw:clone()
  199. Th.Disabled=false
  200. Th.Parent=P
  201.  
  202. --------
  203.  
  204. end
  205.  
  206. for i=1,7 do
  207. script.Parent.Mesh.Scale=script.Parent.Mesh.Scale+Vector3.new(0.15,0.15,0.15)
  208. script.Parent.Smoke.Enabled=false
  209. script.Parent.Transparency=script.Parent.Transparency+0.1
  210. wait()
  211. end
  212. wait()
  213. script.Parent:remove()
  214. elseif chance==2 then
  215. script.Parent.Anchored=true
  216. Particles(script.Parent)
  217. script.Parent.Transparency=1
  218. print("No damage!")
  219. wait()
  220. script.Parent:remove()
  221. end
  222. elseif (human ~= nil and human.Health==0) then
  223. canhit=false
  224. print("He's already dead.")
  225. script.Parent:remove()
  226. elseif (human == nil and hit.Name~=script.Parent.Name and hit.Parent.className~="Tool") then
  227. canhit=false
  228. print("The shot hit : " ..hit.Name)
  229. script.Parent.Anchored=true
  230. script.Parent.Mesh.Scale=Vector3.new(0.1,0.1,0.1)
  231. for i=1,7 do
  232. script.Parent.Mesh.Scale=script.Parent.Mesh.Scale+Vector3.new(0.15,0.15,0.15)
  233. script.Parent.Transparency=script.Parent.Transparency+0.1
  234. wait()
  235. end
  236. wait()
  237. script.Parent:remove()
  238. end
  239. end
  240. end
  241.  
  242. wait()
  243.  
  244. coroutine.resume(coroutine.create(function(pa) wait(0.75) print("Fading") script.Parent.BodyForce.force = Vector3.new(0, 330, 0) for i=1, 9 do script.Parent.Transparency=i*0.1 wait() end script.Parent:remove() end),script.Parent)
  245.  
  246. connection = script.Parent.Touched:connect(onTouched)
  247.  
  248. end))
  249. Part7.Name = "Bottom"
  250. Part7.Parent = Tool0
  251. Part7.BrickColor = BrickColor.new("Black")
  252. Part7.Reflectance = 0.20000000298023
  253. Part7.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  254. Part7.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  255. Part7.Velocity = Vector3.new(0.00022522267, -0.00293435086, -0.000917444238)
  256. Part7.CanCollide = false
  257. Part7.FormFactor = Enum.FormFactor.Plate
  258. Part7.Size = Vector3.new(1, 0.400000006, 1)
  259. Part7.CFrame = CFrame.new(29.4999123, 0.259995937, -15.499836, -0.000154435635, -2.42607184e-05, 0.999999881, -1.47192168e-05, -1, -2.42630467e-05, 0.999999881, -1.47229503e-05, 0.000154435635)
  260. Part7.BottomSurface = Enum.SurfaceType.Smooth
  261. Part7.TopSurface = Enum.SurfaceType.Smooth
  262. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  263. Part7.Position = Vector3.new(29.4999123, 0.259995937, -15.499836)
  264. Part7.Orientation = Vector3.new(0, 89.9899979, -180)
  265. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  266. SpecialMesh8.Parent = Part7
  267. SpecialMesh8.Scale = Vector3.new(0.400000006, 2.25, 0.400000006)
  268. SpecialMesh8.Scale = Vector3.new(0.400000006, 2.25, 0.400000006)
  269. Fire9.Parent = Part7
  270. Fire9.Size = 30
  271. Fire9.Color = Color3.new(0, 0, 1)
  272. Fire9.Enabled = false
  273. Fire9.Heat = 25
  274. Fire9.SecondaryColor = Color3.new(1, 1, 1)
  275. Fire9.Color = Color3.new(0, 0, 1)
  276. Script10.Name = "Spread"
  277. Script10.Parent = Fire9
  278. table.insert(cors,sandbox(Script10,function()
  279. function Spread(part)
  280. check = part:findFirstChild("Fire")
  281. if check == nil then
  282. script.Parent:Clone().Parent = part
  283.  
  284. elseif check ~= nil then
  285. check.Size = check.Size + 1
  286. check.Heat = check.Heat +1
  287. end
  288. end
  289.  
  290.  
  291. script.Parent.Parent.Touched:connect(Spread)
  292.  
  293. end))
  294. Weld11.Parent = Part7
  295. Weld11.C0 = CFrame.new(23.5, 0.69999218, 2.5, 8.97582193e-13, -1.59161573e-12, 1, 8.7538865e-12, -1, 1.59161573e-12, 1, -8.7538865e-12, 8.97582193e-13)
  296. Weld11.C1 = CFrame.new(23.5, 6.12995434, 2.5, 5.60988864e-13, -9.9475983e-13, 1, 5.47117907e-12, -1, 9.9475983e-13, 1, -5.47117907e-12, 5.60988864e-13)
  297. Weld11.Part0 = Part7
  298. Weld11.Part1 = Part12
  299. Part12.Name = "Crystal"
  300. Part12.Parent = Tool0
  301. Part12.BrickColor = BrickColor.new("Navy blue")
  302. Part12.Reflectance = 0.5
  303. Part12.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  304. Part12.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  305. Part12.Velocity = Vector3.new(-0.00220759795, -0.0029343185, 0.000882615102)
  306. Part12.CanCollide = false
  307. Part12.FormFactor = Enum.FormFactor.Plate
  308. Part12.Size = Vector3.new(1, 0.400000006, 1)
  309. Part12.CFrame = CFrame.new(29.5000439, 5.6899581, -15.4997559, -0.000154435635, -2.4260733e-05, 0.999999881, -1.47192141e-05, -1, -2.42630322e-05, 0.999999881, -1.4722953e-05, 0.000154435635)
  310. Part12.BottomSurface = Enum.SurfaceType.Smooth
  311. Part12.TopSurface = Enum.SurfaceType.Smooth
  312. Part12.Color = Color3.new(0, 0.12549, 0.376471)
  313. Part12.Position = Vector3.new(29.5000439, 5.6899581, -15.4997559)
  314. Part12.Orientation = Vector3.new(0, 89.9899979, -180)
  315. Part12.Color = Color3.new(0, 0.12549, 0.376471)
  316. SpecialMesh13.Parent = Part12
  317. SpecialMesh13.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  318. SpecialMesh13.Scale = Vector3.new(0.75, 1, 0.75)
  319. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  320. SpecialMesh13.Scale = Vector3.new(0.75, 1, 0.75)
  321. Fire14.Parent = Part12
  322. Fire14.Size = 30
  323. Fire14.Color = Color3.new(0, 0, 1)
  324. Fire14.Enabled = false
  325. Fire14.Heat = 25
  326. Fire14.SecondaryColor = Color3.new(1, 1, 1)
  327. Fire14.Color = Color3.new(0, 0, 1)
  328. Script15.Name = "Spread"
  329. Script15.Parent = Fire14
  330. table.insert(cors,sandbox(Script15,function()
  331. function Spread(part)
  332. check = part:findFirstChild("Fire")
  333. if check == nil then
  334. script.Parent:Clone().Parent = part
  335.  
  336. elseif check ~= nil then
  337. check.Size = check.Size + 1
  338. check.Heat = check.Heat +1
  339. end
  340. end
  341.  
  342.  
  343. script.Parent.Parent.Touched:connect(Spread)
  344.  
  345. end))
  346. Weld16.Parent = Part12
  347. Weld16.C0 = CFrame.new(23.5, 6.12995434, 2.5, 5.60988864e-13, -9.9475983e-13, 1, 5.47117907e-12, -1, 9.9475983e-13, 1, -5.47117907e-12, 5.60988864e-13)
  348. Weld16.C1 = CFrame.new(23.5, 5.64002514, 2.5, 3.04536805e-13, -5.40012479e-13, 1, 2.97006864e-12, -1, 5.40012479e-13, 1, -2.97006864e-12, 3.04536805e-13)
  349. Weld16.Part0 = Part12
  350. Weld16.Part1 = Part17
  351. Part17.Name = "Bump1"
  352. Part17.Parent = Tool0
  353. Part17.BrickColor = BrickColor.new("Black")
  354. Part17.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  355. Part17.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  356. Part17.Velocity = Vector3.new(-0.00198809197, -0.00293432106, 0.000720201118)
  357. Part17.CanCollide = false
  358. Part17.FormFactor = Enum.FormFactor.Plate
  359. Part17.Size = Vector3.new(1, 0.400000006, 1)
  360. Part17.CFrame = CFrame.new(29.5000324, 5.2000289, -15.4997635, -0.000154435635, -2.42607421e-05, 0.999999881, -1.47192122e-05, -1, -2.42630231e-05, 0.999999881, -1.47229548e-05, 0.000154435635)
  361. Part17.BottomSurface = Enum.SurfaceType.Smooth
  362. Part17.TopSurface = Enum.SurfaceType.Smooth
  363. Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
  364. Part17.Position = Vector3.new(29.5000324, 5.2000289, -15.4997635)
  365. Part17.Orientation = Vector3.new(0, 89.9899979, -180)
  366. Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
  367. SpecialMesh18.Parent = Part17
  368. SpecialMesh18.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
  369. SpecialMesh18.MeshType = Enum.MeshType.Sphere
  370. SpecialMesh18.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
  371. Fire19.Parent = Part17
  372. Fire19.Size = 30
  373. Fire19.Color = Color3.new(0, 0, 1)
  374. Fire19.Enabled = false
  375. Fire19.Heat = 25
  376. Fire19.SecondaryColor = Color3.new(1, 1, 1)
  377. Fire19.Color = Color3.new(0, 0, 1)
  378. Script20.Name = "Spread"
  379. Script20.Parent = Fire19
  380. table.insert(cors,sandbox(Script20,function()
  381. function Spread(part)
  382. check = part:findFirstChild("Fire")
  383. if check == nil then
  384. script.Parent:Clone().Parent = part
  385.  
  386. elseif check ~= nil then
  387. check.Size = check.Size + 1
  388. check.Heat = check.Heat +1
  389. end
  390. end
  391.  
  392.  
  393. script.Parent.Parent.Touched:connect(Spread)
  394.  
  395. end))
  396. Weld21.Parent = Part17
  397. Weld21.C0 = CFrame.new(23.5, 5.64002514, 2.5, 3.04536805e-13, -5.40012479e-13, 1, 2.97006864e-12, -1, 5.40012479e-13, 1, -2.97006864e-12, 3.04536805e-13)
  398. Weld21.C1 = CFrame.new(-23.5, -3.04004931, 2.5, -9.61695187e-14, 1.70530257e-13, -1, -9.37916411e-13, 1, -1.70530257e-13, 1, -9.37916411e-13, 9.61695187e-14)
  399. Weld21.Part0 = Part17
  400. Weld21.Part1 = Part22
  401. Part22.Name = "Handle"
  402. Part22.Parent = Tool0
  403. Part22.BrickColor = BrickColor.new("Navy blue")
  404. Part22.Reflectance = 0.34999999403954
  405. Part22.Rotation = Vector3.new(8.93000031, 89.9700012, -8.93000031)
  406. Part22.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  407. Part22.Velocity = Vector3.new(-0.000823208247, -0.00293433666, -0.000141703771)
  408. Part22.FormFactor = Enum.FormFactor.Plate
  409. Part22.Size = Vector3.new(1, 5.20000029, 1)
  410. Part22.CFrame = CFrame.new(29.4999695, 2.60005307, -15.4998016, 0.000154435635, 2.42607457e-05, 0.999999881, 1.47192113e-05, 1, -2.42630194e-05, -0.999999881, 1.47229557e-05, 0.000154435635)
  411. Part22.BottomSurface = Enum.SurfaceType.Smooth
  412. Part22.TopSurface = Enum.SurfaceType.Smooth
  413. Part22.Color = Color3.new(0, 0.12549, 0.376471)
  414. Part22.Position = Vector3.new(29.4999695, 2.60005307, -15.4998016)
  415. Part22.Orientation = Vector3.new(0, 89.9899979, 0)
  416. Part22.Color = Color3.new(0, 0.12549, 0.376471)
  417. SpecialMesh23.Parent = Part22
  418. SpecialMesh23.Scale = Vector3.new(0.349999994, 1.04999995, 0.349999994)
  419. SpecialMesh23.Scale = Vector3.new(0.349999994, 1.04999995, 0.349999994)
  420. Fire24.Parent = Part22
  421. Fire24.Size = 30
  422. Fire24.Color = Color3.new(0, 0, 1)
  423. Fire24.Enabled = false
  424. Fire24.Heat = 25
  425. Fire24.SecondaryColor = Color3.new(1, 1, 1)
  426. Fire24.Color = Color3.new(0, 0, 1)
  427. Script25.Name = "Spread"
  428. Script25.Parent = Fire24
  429. table.insert(cors,sandbox(Script25,function()
  430. function Spread(part)
  431. check = part:findFirstChild("Fire")
  432. if check == nil then
  433. script.Parent:Clone().Parent = part
  434.  
  435. elseif check ~= nil then
  436. check.Size = check.Size + 1
  437. check.Heat = check.Heat +1
  438. end
  439. end
  440.  
  441.  
  442. script.Parent.Parent.Touched:connect(Spread)
  443.  
  444. end))
  445. Weld26.Parent = Part22
  446. Weld26.C0 = CFrame.new(-23.5, -3.04004931, 2.5, -9.61695187e-14, 1.70530257e-13, -1, -9.37916411e-13, 1, -1.70530257e-13, 1, -9.37916411e-13, 9.61695187e-14)
  447. Weld26.C1 = CFrame.new(23.5, 6.12995434, 2.5, 3.04536805e-13, -5.40012479e-13, 1, 2.97006864e-12, -1, 5.40012479e-13, 1, -2.97006864e-12, 3.04536805e-13)
  448. Weld26.Part0 = Part22
  449. Weld26.Part1 = Part28
  450. Script27.Name = "Thaw"
  451. Script27.Parent = Tool0
  452. Script27.Disabled = true
  453. table.insert(cors,sandbox(Script27,function()
  454. w=script.Parent.Parent.Torso:FindFirstChild("WELDAH")
  455. bp=script.Parent.Parent.Torso:FindFirstChild("FreezeHere")
  456.  
  457. function ICE()
  458. for k=1, 5 do
  459. s=Instance.new("Part")
  460. s.TopSurface="Smooth"
  461. s.BottomSurface="Smooth"
  462. s.formFactor="Symmetric"
  463. s.Size=Vector3.new(1,1,1)
  464. s.Reflectance=0.3
  465. s.Transparency=0.3
  466. s.Friction=2
  467. s.CFrame=script.Parent.CFrame*CFrame.new(math.random(-5,5),math.random(0.1,2),math.random(-5,5))
  468. s.BrickColor=script.Parent.BrickColor
  469. sm=Instance.new("BodyVelocity")
  470. sm.P=2000
  471. sm.velocity=Vector3.new(math.random(-20,20),math.random(5,20),math.random(-20,20))
  472. sm.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  473. sm.Parent=s
  474. s.Parent=game.Workspace
  475. game:GetService("Debris"):AddItem(s,2)
  476. game:GetService("Debris"):AddItem(sm,.3)
  477. end
  478. end
  479.  
  480. wait(1.65)
  481.  
  482. for i=1, 5 do
  483. w.C0=w.C0*CFrame.new(math.random(-0.7,0.7),math.random(-0.3,0.3),math.random(-0.7,0.7))
  484. wait()
  485. end
  486.  
  487. ICE()
  488.  
  489. script.Parent.Parent.Humanoid.WalkSpeed=16
  490.  
  491. if w~=nil then
  492. w:remove()
  493. end
  494. if bp~=nil then
  495. bp:remove()
  496. end
  497. wait()
  498. script.Parent:remove()
  499.  
  500. end))
  501. Part28.Name = "Glow"
  502. Part28.Parent = Tool0
  503. Part28.BrickColor = BrickColor.new("Really black")
  504. Part28.Reflectance = 0.15000000596046
  505. Part28.Transparency = 0.60000002384186
  506. Part28.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  507. Part28.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  508. Part28.Velocity = Vector3.new(-0.00220759818, -0.0029343185, 0.000882615102)
  509. Part28.CanCollide = false
  510. Part28.FormFactor = Enum.FormFactor.Symmetric
  511. Part28.Size = Vector3.new(1, 1, 1)
  512. Part28.CFrame = CFrame.new(29.5000439, 5.6899581, -15.4997559, -0.000154435635, -2.42607421e-05, 0.999999881, -1.47192122e-05, -1, -2.42630231e-05, 0.999999881, -1.47229548e-05, 0.000154435635)
  513. Part28.BottomSurface = Enum.SurfaceType.Smooth
  514. Part28.TopSurface = Enum.SurfaceType.Smooth
  515. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  516. Part28.Position = Vector3.new(29.5000439, 5.6899581, -15.4997559)
  517. Part28.Orientation = Vector3.new(0, 89.9899979, -180)
  518. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  519. SpecialMesh29.Parent = Part28
  520. SpecialMesh29.Scale = Vector3.new(1.75, 1.75, 1.75)
  521. SpecialMesh29.MeshType = Enum.MeshType.Sphere
  522. SpecialMesh29.Scale = Vector3.new(1.75, 1.75, 1.75)
  523. Fire30.Parent = Part28
  524. Fire30.Size = 30
  525. Fire30.Color = Color3.new(0, 0, 1)
  526. Fire30.Enabled = false
  527. Fire30.Heat = 25
  528. Fire30.SecondaryColor = Color3.new(1, 1, 1)
  529. Fire30.Color = Color3.new(0, 0, 1)
  530. Script31.Name = "Spread"
  531. Script31.Parent = Fire30
  532. table.insert(cors,sandbox(Script31,function()
  533. function Spread(part)
  534. check = part:findFirstChild("Fire")
  535. if check == nil then
  536. script.Parent:Clone().Parent = part
  537.  
  538. elseif check ~= nil then
  539. check.Size = check.Size + 1
  540. check.Heat = check.Heat +1
  541. end
  542. end
  543.  
  544.  
  545. script.Parent.Parent.Touched:connect(Spread)
  546.  
  547. end))
  548. Weld32.Parent = Part28
  549. Weld32.C0 = CFrame.new(23.5, 6.12995434, 2.5, 4.96875869e-13, -8.81072992e-13, 1, 4.84590146e-12, -1, 8.81072992e-13, 1, -4.84590146e-12, 4.96875869e-13)
  550. Weld32.C1 = CFrame.new(23.5, 5.24006176, 2.5, 1.17006253e-12, -2.07478479e-12, 1, 1.14113163e-11, -1, 2.07478479e-12, 1, -1.14113163e-11, 1.17006253e-12)
  551. Weld32.Part0 = Part28
  552. Weld32.Part1 = Part33
  553. Part33.Name = "Bump2"
  554. Part33.Parent = Tool0
  555. Part33.BrickColor = BrickColor.new("Black")
  556. Part33.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  557. Part33.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  558. Part33.Velocity = Vector3.new(-0.00180889387, -0.00293432339, 0.000587611285)
  559. Part33.CanCollide = false
  560. Part33.FormFactor = Enum.FormFactor.Plate
  561. Part33.Size = Vector3.new(1, 0.400000006, 1)
  562. Part33.CFrame = CFrame.new(29.5000229, 4.80006552, -15.4997692, -0.000154435635, -2.42607257e-05, 0.999999881, -1.4719215e-05, -1, -2.42630394e-05, 0.999999881, -1.47229521e-05, 0.000154435635)
  563. Part33.BottomSurface = Enum.SurfaceType.Smooth
  564. Part33.TopSurface = Enum.SurfaceType.Smooth
  565. Part33.Color = Color3.new(0.105882, 0.164706, 0.207843)
  566. Part33.Position = Vector3.new(29.5000229, 4.80006552, -15.4997692)
  567. Part33.Orientation = Vector3.new(0, 89.9899979, -180)
  568. Part33.Color = Color3.new(0.105882, 0.164706, 0.207843)
  569. SpecialMesh34.Parent = Part33
  570. SpecialMesh34.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
  571. SpecialMesh34.MeshType = Enum.MeshType.Sphere
  572. SpecialMesh34.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
  573. Fire35.Parent = Part33
  574. Fire35.Size = 30
  575. Fire35.Color = Color3.new(0, 0, 1)
  576. Fire35.Enabled = false
  577. Fire35.Heat = 25
  578. Fire35.SecondaryColor = Color3.new(1, 1, 1)
  579. Fire35.Color = Color3.new(0, 0, 1)
  580. Script36.Name = "Spread"
  581. Script36.Parent = Fire35
  582. table.insert(cors,sandbox(Script36,function()
  583. function Spread(part)
  584. check = part:findFirstChild("Fire")
  585. if check == nil then
  586. script.Parent:Clone().Parent = part
  587.  
  588. elseif check ~= nil then
  589. check.Size = check.Size + 1
  590. check.Heat = check.Heat +1
  591. end
  592. end
  593.  
  594.  
  595. script.Parent.Parent.Touched:connect(Spread)
  596.  
  597. end))
  598. Weld37.Parent = Part33
  599. Weld37.C0 = CFrame.new(23.5, 5.24006176, 2.5, 2.16381427e-12, -3.83693077e-12, 1, 2.11031193e-11, -1, 3.83693077e-12, 1, -2.11031193e-11, 2.16381427e-12)
  600. Weld37.C1 = CFrame.new(23.5, 4.84003735, 2.5, 4.35968492e-12, -7.73070497e-12, 1, 4.25188773e-11, -1, 7.73070497e-12, 1, -4.25188773e-11, 4.35968492e-12)
  601. Weld37.Part0 = Part33
  602. Weld37.Part1 = Part38
  603. Part38.Name = "Bump3"
  604. Part38.Parent = Tool0
  605. Part38.BrickColor = BrickColor.new("Black")
  606. Part38.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  607. Part38.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  608. Part38.Velocity = Vector3.new(-0.0016296684, -0.00293432572, 0.000455001194)
  609. Part38.CanCollide = false
  610. Part38.FormFactor = Enum.FormFactor.Plate
  611. Part38.Size = Vector3.new(1, 0.400000006, 1)
  612. Part38.CFrame = CFrame.new(29.5000134, 4.4000411, -15.4997749, -0.000154435635, -2.4260662e-05, 0.999999881, -1.47192268e-05, -1, -2.42631031e-05, 0.999999881, -1.47229403e-05, 0.000154435635)
  613. Part38.BottomSurface = Enum.SurfaceType.Smooth
  614. Part38.TopSurface = Enum.SurfaceType.Smooth
  615. Part38.Color = Color3.new(0.105882, 0.164706, 0.207843)
  616. Part38.Position = Vector3.new(29.5000134, 4.4000411, -15.4997749)
  617. Part38.Orientation = Vector3.new(0, 89.9899979, -180)
  618. Part38.Color = Color3.new(0.105882, 0.164706, 0.207843)
  619. SpecialMesh39.Parent = Part38
  620. SpecialMesh39.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
  621. SpecialMesh39.MeshType = Enum.MeshType.Sphere
  622. SpecialMesh39.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
  623. Fire40.Parent = Part38
  624. Fire40.Size = 30
  625. Fire40.Color = Color3.new(0, 0, 1)
  626. Fire40.Enabled = false
  627. Fire40.Heat = 25
  628. Fire40.SecondaryColor = Color3.new(1, 1, 1)
  629. Fire40.Color = Color3.new(0, 0, 1)
  630. Script41.Name = "Spread"
  631. Script41.Parent = Fire40
  632. table.insert(cors,sandbox(Script41,function()
  633. function Spread(part)
  634. check = part:findFirstChild("Fire")
  635. if check == nil then
  636. script.Parent:Clone().Parent = part
  637.  
  638. elseif check ~= nil then
  639. check.Size = check.Size + 1
  640. check.Heat = check.Heat +1
  641. end
  642. end
  643.  
  644.  
  645. script.Parent.Parent.Touched:connect(Spread)
  646.  
  647. end))
  648. Weld42.Parent = Part38
  649. Weld42.C0 = CFrame.new(23.5, 4.84003735, 2.5, 8.68731302e-12, -1.54045665e-11, 1, 8.47251158e-11, -1, 1.54045665e-11, 1, -8.47251158e-11, 8.68731302e-12)
  650. Weld42.C1 = CFrame.new(23.5, 0.69999218, 2.5, 1.59000278e-11, -2.81943358e-11, 1, 1.55068847e-10, -1, 2.81943358e-11, 1, -1.55068847e-10, 1.59000278e-11)
  651. Weld42.Part0 = Part38
  652. Weld42.Part1 = Part43
  653. Part43.Name = "Bump4"
  654. Part43.Parent = Tool0
  655. Part43.BrickColor = BrickColor.new("Really black")
  656. Part43.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
  657. Part43.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
  658. Part43.Velocity = Vector3.new(0.000225222437, -0.00293435086, -0.000917444297)
  659. Part43.CanCollide = false
  660. Part43.FormFactor = Enum.FormFactor.Plate
  661. Part43.Size = Vector3.new(1, 0.400000006, 1)
  662. Part43.CFrame = CFrame.new(29.4999123, 0.259995937, -15.499836, -0.000154435606, -2.42604219e-05, 0.999999881, -1.47192704e-05, -1, -2.42633432e-05, 0.999999881, -1.47228966e-05, 0.000154435664)
  663. Part43.BottomSurface = Enum.SurfaceType.Smooth
  664. Part43.TopSurface = Enum.SurfaceType.Smooth
  665. Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  666. Part43.Position = Vector3.new(29.4999123, 0.259995937, -15.499836)
  667. Part43.Orientation = Vector3.new(0, 89.9899979, -180)
  668. Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  669. SpecialMesh44.Parent = Part43
  670. SpecialMesh44.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
  671. SpecialMesh44.MeshType = Enum.MeshType.Sphere
  672. SpecialMesh44.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
  673. Fire45.Parent = Part43
  674. Fire45.Size = 30
  675. Fire45.Color = Color3.new(0, 0, 1)
  676. Fire45.Enabled = false
  677. Fire45.Heat = 25
  678. Fire45.SecondaryColor = Color3.new(1, 1, 1)
  679. Fire45.Color = Color3.new(0, 0, 1)
  680. Script46.Name = "Spread"
  681. Script46.Parent = Fire45
  682. table.insert(cors,sandbox(Script46,function()
  683. function Spread(part)
  684. check = part:findFirstChild("Fire")
  685. if check == nil then
  686. script.Parent:Clone().Parent = part
  687.  
  688. elseif check ~= nil then
  689. check.Size = check.Size + 1
  690. check.Heat = check.Heat +1
  691. end
  692. end
  693.  
  694.  
  695. script.Parent.Parent.Touched:connect(Spread)
  696.  
  697. end))
  698. Script47.Name = "Beam"
  699. Script47.Parent = Tool0
  700. Script47.Disabled = true
  701. table.insert(cors,sandbox(Script47,function()
  702. c=script.Parent.CFrame
  703. onTouched=function(hit)
  704. if hit.Parent==nil then
  705. return
  706. end
  707. h=hit.Parent:FindFirstChild("Humanoid")
  708. if h~=nil then
  709. if h==script.Owner.Value then
  710. return
  711. end
  712. h:TakeDamage(31)
  713. end
  714. end
  715. script.Parent.Touched:connect(onTouched)
  716. while true do
  717. if script.Parent.Transparency>.95 then
  718. break
  719. end
  720. script.Parent.CFrame=c
  721. script.Parent.Transparency=script.Parent.Transparency+.1
  722. wait()
  723. end
  724. script.Parent.Parent=nil
  725. end))
  726. Script48.Name = "Weld"
  727. Script48.Parent = Tool0
  728. table.insert(cors,sandbox(Script48,function()
  729. local prev
  730. local parts = script.Parent:GetChildren()
  731.  
  732. for i = 1,#parts do
  733. if (parts[i].className == "Part" or parts[i].className == "WedgePart") then
  734. if (prev ~= nil)then
  735. local weld = Instance.new("Weld")
  736. weld.Part0 = prev
  737. weld.Part1 = parts[i]
  738. weld.C0 = prev.CFrame:inverse()
  739. weld.C1 = parts[i].CFrame:inverse()
  740. weld.Parent = prev
  741. end
  742. prev = parts[i]
  743. end
  744. end
  745.  
  746. end))
  747. LocalScript49.Name = "StaffScript"
  748. LocalScript49.Parent = Tool0
  749. table.insert(cors,sandbox(LocalScript49,function()
  750. -------- OMG HAX
  751. wait()
  752. r = game:service("RunService")
  753. local sword = script.Parent.Handle
  754. local Tool = script.Parent
  755.  
  756. local working=Tool.Working
  757.  
  758. local S1 = true
  759. local S2 = false
  760. local S3 = false
  761. local S4 = false
  762.  
  763. local First = false
  764. local Second = false
  765. local Third = false
  766. local Fourth = false
  767.  
  768. local deb = false
  769.  
  770. local damage = 0
  771. local p = nil
  772. local humanoid = nil
  773.  
  774. local divine=false
  775. local sun=false
  776.  
  777. c2 = {"Really black","Bright violet", "Black"}
  778.  
  779. ChargeId="http://www.roblox.com/asset/?id=2101137"
  780. CastId="http://www.roblox.com/asset/?id=2248511"
  781. FireId="http://www.roblox.com/asset/?id=2248511"
  782. ChargeSound=Instance.new("Sound")
  783. ChargeSound.Volume=0.6
  784. ChargeSound.Pitch=0.85
  785. ChargeSound.SoundId=ChargeId
  786. CastSound=Instance.new("Sound")
  787. CastSound.Volume=0.6
  788. CastSound.Pitch=0.65
  789. CastSound.SoundId=CastId
  790. FireSound=Instance.new("Sound")
  791. FireSound.Volume=0.45
  792. FireSound.Pitch=2
  793. FireSound.SoundId=FireId
  794.  
  795. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  796. torso = Tool.Parent:FindFirstChild("Torso")
  797.  
  798. arms = nil
  799. torso = nil
  800. welds = {}
  801.  
  802. function Weld()
  803. wait(0.01)
  804. arm = Tool.Parent:FindFirstChild("Right Arm")
  805. torso = Tool.Parent:FindFirstChild("Torso")
  806. if arm ~= nil and torso ~= nil then
  807. local sh = torso:FindFirstChild("Right Shoulder")
  808. if sh ~= nil then
  809. local yes = true
  810. if yes then
  811. yes = false
  812. sh.Part1 = nil
  813. weld2 = Instance.new("Weld")
  814. weld2.Part0 = torso
  815. weld2.Parent = torso
  816. weld2.Part1 = arm
  817. weld2.C0 = CFrame.new(1.5,0.5,0)
  818. weld2.C1 = CFrame.new(0,0.5,0)
  819. welds = weld2
  820. for i=1,10 do
  821. weld2.C1 = weld2.C1*CFrame.fromEulerAnglesXYZ(math.pi/-20, 0, 0)
  822. wait()
  823. end
  824. end
  825. else
  826. print("sh")
  827. end
  828. else
  829. print("arms")
  830. end
  831. end
  832.  
  833. Damage=function(Point)
  834. for ii,vv in pairs(workspace:children()) do
  835. if vv.className=="Model" then
  836. local vCharacter = Tool.Parent
  837. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  838. Human=vv:FindFirstChild("Humanoid")
  839. Torso=vv:FindFirstChild("Torso")
  840. if Human~=nil and Torso~=nil then
  841. if Human.Health>0 then
  842. if divine==true then
  843. if ((Torso.Position-Point).magnitude<=18 and vv~=Tool.Parent) then
  844. tagHumanoid(Human, vPlayer)
  845. Torso.CFrame=CFrame.new(Torso.Position,Vector3.new(Point.x,Torso.Position.y,Point.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  846. Push=Instance.new("BodyVelocity")
  847. Push.P=1000
  848. Push.maxForce=Vector3.new(500000,500000,500000)*50000
  849. Push.velocity=(Torso.Position-Point).unit*18+Vector3.new(0,6,0)
  850. Push.Parent=Torso
  851. game:GetService("Debris"):AddItem(Gyro,.5)
  852. game:GetService("Debris"):AddItem(Push,.25)
  853. Human:TakeDamage(45)
  854. coroutine.resume(coroutine.create(function(Part,CF) wait(1) untagHumanoid(Human) end),script)
  855. end
  856. elseif sun==true then
  857. if ((Torso.Position-Point).magnitude<=25 and vv~=Tool.Parent) then
  858. tagHumanoid(Human, vPlayer)
  859. Torso.CFrame=CFrame.new(Torso.Position,Vector3.new(Point.x,Torso.Position.y,Point.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  860. Gyro=Instance.new("BodyGyro")
  861. Gyro.P=2000
  862. Gyro.D=Gyro.D/2
  863. Gyro.maxTorque=Vector3.new(500000,500000,500000)*500000
  864. Gyro.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
  865. Gyro.Parent=Torso
  866. Push=Instance.new("BodyVelocity")
  867. Push.P=1000
  868. Push.maxForce=Vector3.new(500000,500000,500000)*50000
  869. Push.velocity=(Torso.Position-Point).unit*10+Vector3.new(0,5,0)
  870. Push.Parent=Torso
  871. game:GetService("Debris"):AddItem(Gyro,1.5)
  872. game:GetService("Debris"):AddItem(Push,.25)
  873. Human:TakeDamage(35)
  874. coroutine.resume(coroutine.create(function(Part,CF) wait(1) untagHumanoid(Human) end),script)
  875. end
  876.  
  877. end
  878. end
  879. end
  880. end
  881. end
  882. end
  883.  
  884. Effect=function(Part,V)
  885. for i=1,3 do
  886. S=Instance.new("Part")
  887. S.Name="Effect"
  888. S.formFactor="Symmetric"
  889. S.Size=Vector3.new(2,2,2)
  890. S.BrickColor=BrickColor.new(c2[math.random(1,#c2)])
  891. S.TopSurface=0
  892. S.BottomSurface=0
  893. S.Transparency=0
  894. S.Anchored=true
  895. S.CanCollide=false
  896. S.CFrame=Part.CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  897. S.Parent=Tool
  898. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 Part.Size=Part.Size+Vector3.new(V,V,V) Part.CFrame=CF*CFrame.fromEulerAnglesXYZ(math.random(-1,1)/2*i,math.random(-1,1)/2*i,math.random(-1,1)/2*i) wait() end Part.Parent=nil end),S,S.CFrame)
  899. wait()
  900. end
  901. end
  902.  
  903. function tagHumanoid(humanoid, player)
  904. local creator_tag = Instance.new("ObjectValue")
  905. creator_tag.Value = player
  906. creator_tag.Name = "creator"
  907. creator_tag.Parent = humanoid
  908. end
  909.  
  910. function untagHumanoid(humanoid)
  911. if humanoid ~= nil then
  912. local tag = humanoid:findFirstChild("creator")
  913. if tag ~= nil then
  914. tag.Parent = nil
  915. end
  916. end
  917. end
  918.  
  919. function lungegrip2()
  920. for i=1,4 do
  921. Tool.Parent["Right Arm"]["RightGrip"].C0=Tool.Parent["Right Arm"]["RightGrip"].C0*CFrame.fromEulerAnglesXYZ(math.pi/8,0,0)
  922. wait()
  923. end
  924. end
  925.  
  926. function swordUp()
  927. Tool.GripForward = Vector3.new(-1,0,0)
  928. Tool.GripRight = Vector3.new(0,1,0)
  929. Tool.GripUp = Vector3.new(0,0,1)
  930. end
  931.  
  932. function swordOut()
  933. Tool.GripForward = Vector3.new(0,0,1)
  934. Tool.GripRight = Vector3.new(0,1,0)
  935. Tool.GripUp = Vector3.new(1,0,0)
  936. end
  937.  
  938. Tool.Enabled = true
  939. local last_attack = 0
  940. function onActivated(mouse)
  941.  
  942. if deb==true then
  943. return
  944. end
  945.  
  946. if not Tool.Enabled then
  947. return
  948. end
  949.  
  950. local character = Tool.Parent;
  951. local humanoid = character.Humanoid
  952. if humanoid == nil then
  953. print("Humanoid not found")
  954. return
  955. end
  956.  
  957. if (S1==true and Tool.Enabled==true and First==false and Second==false) then
  958. vCharacter = Tool.Parent
  959. vPlayer = game.Players:playerFromCharacter(vCharacter)
  960. if Tool.Mode.Value==0 then
  961.  
  962. MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
  963. if MGui~=nil then
  964. if MGui.MP.Value.Value<3.3333 then
  965. print("Not enough MP!")
  966. return
  967. end
  968. end
  969.  
  970. First=true
  971. Tool.Enabled = false
  972. print("Beam")
  973.  
  974. Pos=mouse.Hit.p
  975. V=(mouse.Hit.p-Tool.Parent.Torso.Position).unit
  976. M=(mouse.Hit.p-Tool.Parent.Torso.Position).magnitude
  977. if M>500 then
  978. Pos=Tool.Parent.Torso.Position+V*500
  979. end
  980.  
  981. TurnG = Instance.new("BodyGyro")
  982. TurnG.Name = "TurnGyro"
  983. TurnG.P = TurnG.P*5
  984. TurnG.maxTorque = Vector3.new(0,100,0)
  985. TurnG.cframe = Tool.Parent.Torso.CFrame
  986. TurnG.Parent = Tool.Parent.Torso
  987.  
  988. TurnG.cframe=CFrame.new(Tool.Parent.Torso.Position,Tool.Parent.Torso.Position+V)
  989.  
  990. weld20=weld2.C0
  991. weld21=weld2.C1
  992. grip=Tool.Parent["Right Arm"].RightGrip.C1
  993.  
  994. for i=1,6 do
  995. weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(math.pi/16, 0, 0)
  996. Tool.Parent["Right Arm"].RightGrip.C1 = Tool.Parent["Right Arm"].RightGrip.C1 * CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
  997. wait()
  998. end
  999.  
  1000. Tool.Parent["Humanoid"].WalkSpeed=0
  1001.  
  1002. wait(0.55)
  1003.  
  1004. working.Value=true
  1005.  
  1006. for i=1,10 do
  1007. weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(math.pi/-16, 0, 0)
  1008. --weld2.C0 = weld2.C0+Vector3.new(0,-0.005,-0.005)
  1009. wait()
  1010. end
  1011.  
  1012. wait()
  1013.  
  1014. E=Instance.new("Part")
  1015. E.Transparency=1
  1016. E.Reflectance=0
  1017. E.TopSurface=0
  1018. E.BottomSurface=0
  1019. E.Anchored=false
  1020. E.CanCollide=false
  1021. E.BrickColor=BrickColor.new("Dark stone grey")
  1022. E.Shape="Ball"
  1023. E.formFactor="Symmetric"
  1024. E.Size=Vector3.new(1,1,1)
  1025. E.CFrame=Tool.Crystal.CFrame
  1026. E.Parent=Tool
  1027.  
  1028. weldE = Instance.new("Weld")
  1029. weldE.Parent = E
  1030. weldE.Part0 = weldE.Parent
  1031. weldE.Part1 = Tool.Crystal
  1032. weldE.C0 = CFrame.new(0,0,0)
  1033.  
  1034. Me=Instance.new("SpecialMesh")
  1035. Me.MeshType="Sphere"
  1036. Me.Scale=Vector3.new(5,5,5)
  1037. Me.Parent=E
  1038.  
  1039. for i=1,10 do
  1040. Me.Scale=Me.Scale-Vector3.new(0.5,0.5,0.5)
  1041. E.Transparency=E.Transparency-0.1
  1042. E.Reflectance=E.Reflectance+0.05
  1043. wait()
  1044. end
  1045.  
  1046. TurnG:remove()
  1047.  
  1048. E:remove()
  1049.  
  1050. L=Instance.new("Part")
  1051. L.Anchored=true
  1052. L.CanCollide=false
  1053. L.Name="DarkBeam"
  1054. L.BrickColor=BrickColor.new("Bright violet")
  1055. L.TopSurface=0
  1056. L.BottomSurface=0
  1057. L.Transparency=0.175
  1058. L.Reflectance=0.3
  1059. L.Shape="Block"
  1060. L.formFactor="Symmetric"
  1061. if (Tool.Crystal.Position-Pos).magnitude<60 then
  1062. L.Size=Vector3.new(2,(Tool.Handle.Position-Pos).magnitude,2)
  1063. elseif (Tool.Crystal.Position-Pos).magnitude>=60 then
  1064. L.Size=Vector3.new(2,50,2)
  1065. end
  1066. L.CFrame=CFrame.new(Tool.Crystal.Position+Tool.Parent.Torso.CFrame.lookVector*0.25+V*(L.Size.y/2),Tool.Crystal.Position+V*1500*(Tool.Crystal.Position-Pos).magnitude/300)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1067. L.Parent=Tool
  1068. M=Instance.new("SpecialMesh")
  1069. M.MeshType="Head"
  1070. M.Scale=Vector3.new(0.65,1,0.65)
  1071. M.Parent=L
  1072. S=Tool.Beam:clone()
  1073. S.Disabled=false
  1074. t=Instance.new("ObjectValue")
  1075. t.Name="Owner"
  1076. t.Parent=S
  1077. t.Value=Tool.Parent.Humanoid
  1078. S.Parent=L
  1079. --[[
  1080. V=Instance.new("BodyVelocity")
  1081. V.maxForce=Vector3.new(math.huge,500,math.huge)
  1082. V.velocity=Tool.Parent.Torso.CFrame.lookVector*-5
  1083. V.Parent=Tool.Parent.Torso
  1084. game:GetService("Debris"):AddItem(V,.2)
  1085. ]]
  1086.  
  1087. MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
  1088. if MGui~=nil then
  1089. if MGui.MP.Value.Value>=2.5 then
  1090. MGui.MP.Value.Value=MGui.MP.Value.Value-2.5
  1091. end
  1092. end
  1093.  
  1094. N1=ChargeSound:clone()
  1095. N1.Pitch=1.5
  1096. N1.Parent=Tool.Crystal
  1097. N1:Play()
  1098.  
  1099. working.Value=false
  1100.  
  1101. wait()
  1102.  
  1103. damage=0
  1104.  
  1105. Tool.Parent["Humanoid"].WalkSpeed=6
  1106.  
  1107. wait(0.35)
  1108.  
  1109. weld2.C0 = CFrame.new(1.5,0.5,0)
  1110. weld2.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, 0)
  1111. Tool.Parent["Right Arm"].RightGrip.C1=grip
  1112.  
  1113. damage = 0
  1114. print("End of Beam Spell")
  1115. wait(0.4)
  1116.  
  1117. N1:remove()
  1118.  
  1119. First=false
  1120. Tool.Enabled = true
  1121.  
  1122. elseif Tool.Mode.Value==1 then
  1123.  
  1124. MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
  1125. if MGui~=nil then
  1126. if MGui.MP.Value.Value<5 then
  1127. print("Not enough MP!")
  1128. return
  1129. end
  1130. end
  1131.  
  1132. Second=true
  1133. Tool.Enabled = false
  1134. print("Impurity")
  1135.  
  1136. bp = Instance.new("BodyPosition")
  1137. bp.Name="StayHere"
  1138. bp.P = 1e+004
  1139. bp.D = 1e+003
  1140. bp.Parent = Tool.Parent.Torso
  1141. bp.maxForce = Vector3.new(1e+008, 1e+008, 1e+008)
  1142. bp.position=Tool.Parent.Torso.Position
  1143.  
  1144. weld20=weld2.C0
  1145. weld21=weld2.C1
  1146. grip=Tool.Parent["Right Arm"].RightGrip.C1
  1147.  
  1148. for i=1,2 do
  1149. weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(0, math.pi/16, math.pi/4)
  1150. weld2.C0 = weld2.C0+Vector3.new(-0.1,0,-0.1)
  1151. Tool.Parent["Right Arm"].RightGrip.C1 = Tool.Parent["Right Arm"].RightGrip.C1 * CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
  1152. wait()
  1153. end
  1154.  
  1155. Tool.Parent["Humanoid"].WalkSpeed=0
  1156.  
  1157. wait(0.15)
  1158.  
  1159. working.Value=true
  1160.  
  1161. wait()
  1162.  
  1163. E=Instance.new("Part")
  1164. E.Transparency=1
  1165. E.TopSurface=0
  1166. E.BottomSurface=0
  1167. E.Anchored=false
  1168. E.CanCollide=false
  1169. E.BrickColor=BrickColor.new("Black")
  1170. E.Shape="Ball"
  1171. E.formFactor="Symmetric"
  1172. E.Size=Vector3.new(1,1,1)
  1173. E.CFrame=Tool.Crystal.CFrame
  1174. E.Parent=Tool
  1175.  
  1176. weldE = Instance.new("Weld")
  1177. weldE.Parent = E
  1178. weldE.Part0 = weldE.Parent
  1179. weldE.Part1 = Tool.Crystal
  1180. weldE.C0 = CFrame.new(0,0,0)
  1181.  
  1182. Me=Instance.new("SpecialMesh")
  1183. Me.MeshType="Sphere"
  1184. Me.Scale=Vector3.new(10,10,10)
  1185. Me.Parent=E
  1186.  
  1187. for i=1,10 do
  1188. Me.Scale=Me.Scale-Vector3.new(1,1,1)
  1189. E.Transparency=E.Transparency-0.1
  1190. wait()
  1191. end
  1192.  
  1193. wait(0.5)
  1194.  
  1195. MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
  1196. if MGui~=nil then
  1197. if MGui.MP.Value.Value>=5 then
  1198. MGui.MP.Value.Value=MGui.MP.Value.Value-5
  1199. end
  1200. end
  1201.  
  1202. F=Instance.new("Fire")
  1203. F.Color=Color3.new(71/255,0,72/255)
  1204. F.Heat=9
  1205. F.SecondaryColor=Color3.new(129/255,42/255,203/255)
  1206. F.Size=8
  1207. F.Parent=Tool.Parent.Torso
  1208.  
  1209. for i=1, 10 do
  1210. F.Size=F.Size+1
  1211. wait()
  1212. end
  1213.  
  1214. for i=1, 20 do
  1215. F.Heat=F.Heat+0.05
  1216. wait()
  1217. end
  1218.  
  1219. hp=(Tool.Parent.Humanoid.MaxHealth-Tool.Parent.Humanoid.Health)
  1220. firesize=(F.Size/50)
  1221. fireheat=(F.Heat/50)
  1222.  
  1223. for i=1, 50 do
  1224. F.Heat=F.Heat-fireheat
  1225. F.Size=F.Size-firesize
  1226. Tool.Parent.Humanoid.Health=Tool.Parent.Humanoid.Health+(hp/50)
  1227. wait()
  1228. end
  1229.  
  1230. for i=1,10 do
  1231. Me.Scale=Me.Scale+Vector3.new(2,2,2)
  1232. wait()
  1233. end
  1234.  
  1235. divine=true
  1236. sun=false
  1237.  
  1238. Damage(Tool.Parent.Torso.CFrame.p)
  1239.  
  1240. divine=false
  1241. sun=false
  1242.  
  1243. for i=1,5 do
  1244. Me.Scale=Me.Scale+Vector3.new(1,1,1)
  1245. E.Transparency=E.Transparency+0.2
  1246. wait()
  1247. end
  1248.  
  1249. E:remove()
  1250.  
  1251. F:remove()
  1252.  
  1253. bp:remove()
  1254.  
  1255. Tool.Parent["Humanoid"].WalkSpeed=8
  1256.  
  1257. working.Value=false
  1258.  
  1259. wait()
  1260.  
  1261. damage=0
  1262.  
  1263. Tool.Parent["Humanoid"].WalkSpeed=6
  1264.  
  1265. wait(1.15)
  1266.  
  1267. weld2.C0 = CFrame.new(1.5,0.5,0)
  1268. weld2.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, 0)
  1269. Tool.Parent["Right Arm"].RightGrip.C1=grip
  1270.  
  1271. wait(1)
  1272.  
  1273. Second=false
  1274. Tool.Enabled = true
  1275. damage = 0
  1276. print("End of Impurity Spell")
  1277.  
  1278. elseif Tool.Mode.Value==2 then
  1279.  
  1280. MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
  1281. if MGui~=nil then
  1282. if MGui.MP.Value.Value<4 then
  1283. print("Not enough MP!")
  1284. return
  1285. end
  1286. end
  1287.  
  1288. Second=true
  1289. Tool.Enabled = false
  1290. print("DarkBlast")
  1291.  
  1292. weld20=weld2.C0
  1293. weld21=weld2.C1
  1294. grip=Tool.Parent["Right Arm"].RightGrip.C1
  1295.  
  1296. for i=1,12 do
  1297. weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(math.pi/32, 0, 0)
  1298. Tool.Parent["Right Arm"].RightGrip.C1 = Tool.Parent["Right Arm"].RightGrip.C1 * CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
  1299. wait()
  1300. end
  1301.  
  1302. Tool.Parent["Humanoid"].WalkSpeed=0
  1303.  
  1304. wait(0.35)
  1305.  
  1306. working.Value=true
  1307.  
  1308. wait()
  1309.  
  1310. E=Instance.new("Part")
  1311. E.Transparency=1
  1312. E.TopSurface=0
  1313. E.BottomSurface=0
  1314. E.Anchored=false
  1315. E.CanCollide=false
  1316. E.BrickColor=BrickColor.new("Really black")
  1317. E.Shape="Ball"
  1318. E.formFactor="Symmetric"
  1319. E.Size=Vector3.new(1,1,1)
  1320. E.CFrame=Tool.Crystal.CFrame
  1321. E.Parent=Tool
  1322.  
  1323. weldE = Instance.new("Weld")
  1324. weldE.Parent = E
  1325. weldE.Part0 = weldE.Parent
  1326. weldE.Part1 = Tool.Crystal
  1327. weldE.C0 = CFrame.new(0,0,0)
  1328.  
  1329. Me=Instance.new("SpecialMesh")
  1330. Me.MeshType="Sphere"
  1331. Me.Scale=Vector3.new(10,10,10)
  1332. Me.Parent=E
  1333.  
  1334. N1=ChargeSound:clone()
  1335. N1.Pitch=0.7
  1336. N1.Parent=Tool.Crystal
  1337. N1:Play()
  1338.  
  1339. for i=1,20 do
  1340. Me.Scale=Me.Scale-Vector3.new(0.5,0.5,0.5)
  1341. E.Transparency=E.Transparency-0.1
  1342. wait()
  1343. end
  1344.  
  1345. E:remove()
  1346.  
  1347. wait(0.35)
  1348.  
  1349. N1:remove()
  1350.  
  1351. MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
  1352. if MGui~=nil then
  1353. if MGui.MP.Value.Value>=4 then
  1354. MGui.MP.Value.Value=MGui.MP.Value.Value-4
  1355. end
  1356. end
  1357.  
  1358. L=Instance.new("Part")
  1359. L.Transparency=0.25
  1360. L.TopSurface=0
  1361. L.BottomSurface=0
  1362. L.Anchored=false
  1363. L.CanCollide=false
  1364. L.BrickColor=BrickColor.new("Really black")
  1365. L.Shape="Ball"
  1366. L.formFactor="Symmetric"
  1367. L.Size=Vector3.new(1,1,1)
  1368. L.CFrame=Tool.Crystal.CFrame
  1369. L.Parent=Tool
  1370.  
  1371. weldL = Instance.new("Weld")
  1372. weldL.Parent = L
  1373. weldL.Part0 = weldL.Parent
  1374. weldL.Part1 = Tool.Crystal
  1375. weldL.C0 = CFrame.new(0,0,0)
  1376.  
  1377.  
  1378. Me2=Instance.new("SpecialMesh")
  1379. Me2.MeshType="Sphere"
  1380. Me2.Scale=Vector3.new(0,0,0)
  1381. Me2.Parent=L
  1382.  
  1383. divine=false
  1384. sun=true
  1385.  
  1386. wait()
  1387.  
  1388. N=CastSound:clone()
  1389. N.Parent=L
  1390.  
  1391. N.Volume=0.7
  1392. N.Pitch=0.875
  1393. N:Play()
  1394.  
  1395. for i=1,10 do
  1396. Me2.Scale=Me2.Scale+Vector3.new(1.5,1.5,1.5)
  1397. wait()
  1398. end
  1399.  
  1400. Effect(Tool.Crystal,1)
  1401.  
  1402. Damage(Tool.Parent.Torso.CFrame.p)
  1403.  
  1404. for i=1,10 do
  1405. Me2.Scale=Me2.Scale+Vector3.new(1.5,1.5,1.5)
  1406. L.Transparency=L.Transparency+0.075
  1407. wait()
  1408. end
  1409.  
  1410. wait()
  1411.  
  1412. L:remove()
  1413.  
  1414. wait(0.5)
  1415.  
  1416. divine=false
  1417. sun=false
  1418.  
  1419. working.Value=false
  1420.  
  1421. wait()
  1422.  
  1423. damage=0
  1424.  
  1425. Tool.Parent["Humanoid"].WalkSpeed=6
  1426.  
  1427. wait(1.75)
  1428.  
  1429. weld2.C0 = CFrame.new(1.5,0.5,0)
  1430. weld2.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, 0)
  1431. Tool.Parent["Right Arm"].RightGrip.C1=grip
  1432.  
  1433. wait(0.65)
  1434.  
  1435. N:remove()
  1436.  
  1437. Second=false
  1438. Tool.Enabled = true
  1439. damage = 0
  1440. print("End of DarkBlast Spell")
  1441.  
  1442. end
  1443.  
  1444. if (First==false and Second==false) then
  1445. Tool.Parent["Humanoid"].WalkSpeed=20
  1446. print("Oh no!")
  1447. S1=true
  1448. end
  1449. end
  1450. Tool.Enabled = true
  1451. end
  1452.  
  1453. function Switch(key)
  1454. if (key=="e") then
  1455. if Tool.Mode.Value==0 then
  1456. Tool.Mode.Value=1
  1457. player=game.Players:GetPlayerFromCharacter(Tool.Parent)
  1458. modegui=player.PlayerGui:FindFirstChild("ModeGui")
  1459. if modegui~=nil then
  1460. modegui.Mode.Text="Impurity"
  1461. modegui.Mode.BackgroundColor3=Color3.new(124/255,58/255,145/255)
  1462. end
  1463. elseif Tool.Mode.Value==1 then
  1464. Tool.Mode.Value=2
  1465. player=game.Players:GetPlayerFromCharacter(Tool.Parent)
  1466. modegui=player.PlayerGui:FindFirstChild("ModeGui")
  1467. if modegui~=nil then
  1468. modegui.Mode.Text="Dark Blast"
  1469. modegui.Mode.BackgroundColor3=Color3.new(180/255,111/255,190/255)
  1470. end
  1471. elseif Tool.Mode.Value==2 then
  1472. Tool.Mode.Value=0
  1473. player=game.Players:GetPlayerFromCharacter(Tool.Parent)
  1474. modegui=player.PlayerGui:FindFirstChild("ModeGui")
  1475. if modegui~=nil then
  1476. modegui.Mode.Text="Beam"
  1477. modegui.Mode.BackgroundColor3=Color3.new(210/255,164/255,223/255)
  1478. end
  1479. end
  1480. end
  1481. end
  1482.  
  1483. function UnWeld()
  1484. if arm ~= nil and torso ~= nil then
  1485. local sh = torso:FindFirstChild("Right Shoulder")
  1486. if sh ~= nil then
  1487. local yes = true
  1488. if yes then
  1489. yes = false
  1490. sh.Part1 = arm
  1491. welds.Parent = nil
  1492. end
  1493. else
  1494. print("sh")
  1495. end
  1496. else
  1497. print("arms")
  1498. end
  1499. end
  1500.  
  1501. function onEquipped(mouse)
  1502. mouse.Button1Down:connect(function() onActivated(mouse) end)
  1503. mouse.KeyDown:connect(function(key) Switch(key) end)
  1504. local humanoid = Tool.Parent:FindFirstChild("Humanoid",false)
  1505. p = game.Players:GetPlayerFromCharacter(Tool.Parent)
  1506. gui=p.PlayerGui:FindFirstChild("ModeGui")
  1507. if gui==nil then
  1508. gui1=Tool.ModeGui:clone()
  1509. gui1.Parent=p.PlayerGui
  1510. end
  1511. end
  1512.  
  1513. function onUnequipped()
  1514. gui=p.PlayerGui:FindFirstChild("ModeGui")
  1515. if gui~=nil then
  1516. gui:remove()
  1517. end
  1518. end
  1519.  
  1520. --script.Parent.Parent.Humanoid.Jumping:connect(Leap)
  1521. script.Parent.Unequipped:connect(onUnequipped)
  1522. script.Parent.Equipped:connect(onEquipped)
  1523. script.Parent.Equipped:connect(Weld)
  1524. script.Parent.Unequipped:connect(UnWeld)
  1525.  
  1526. end))
  1527. for i,v in pairs(mas:GetChildren()) do
  1528. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1529. pcall(function() v:MakeJoints() end)
  1530. end
  1531. mas:Destroy()
  1532. for i,v in pairs(cors) do
  1533. spawn(function()
  1534. pcall(v)
  1535. end)
  1536. end
Add Comment
Please, Sign In to add comment