Advertisement
DerpzDeNugget

Extermina

Aug 6th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 136.60 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173.  
  174. warn([[Extermina Loaded.
  175. Made by NoobyGames12
  176.  
  177. One who is based off to someone.
  178. But its different.]])
  179. plr = game.Players.LocalPlayer
  180. char = plr.Character
  181. hum = char.Humanoid
  182. local cam = game.Workspace.CurrentCamera
  183. t = char.Torso
  184. h = char.Head
  185. ra = char["Right Arm"]
  186. la = char["Left Arm"]
  187. rl = char["Right Leg"]
  188. ll = char["Left Leg"]
  189. tors = char.Torso
  190. lleg = char["Left Leg"]
  191. root = char.HumanoidRootPart
  192. hed = char.Head
  193. rleg = char["Right Leg"]
  194. rarm = char["Right Arm"]
  195. larm = char["Left Arm"]
  196. radian = math.rad
  197. random = math.random
  198. Vec3 = Vector3.new
  199. Inst = Instance.new
  200. cFrame = CFrame.new
  201. Euler = CFrame.fromEulerAnglesXYZ
  202. vt = Vector3.new
  203. bc = BrickColor.new
  204. br = BrickColor.random
  205. it = Instance.new
  206. cf = CFrame.new
  207. local killcount = 0
  208.  
  209.  
  210. function CameraEnshaking(Length,Intensity,Parent)
  211. coroutine.resume(coroutine.create(function()
  212. local HumanoidParented = Parent:WaitForChild("Humanoid")
  213. local intensity = 1*Intensity
  214. local rotM = 0.01*Intensity
  215. for i = 0, Length, 0.1 do
  216. swait()
  217. intensity = intensity - 0.05*Intensity/Length
  218. rotM = rotM - 0.0005*Intensity/Length
  219. HumanoidParented.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  220. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  221. end
  222. Humanoid.CameraOffset = Vec3(0, 0, 0)
  223. end))
  224. end
  225.  
  226.  
  227. --[[kan = Instance.new("Sound",char)
  228. kan.Volume = 1.25
  229. kan.TimePosition = 0
  230. kan.PlaybackSpeed = 1
  231. kan.Pitch = 1
  232. kan.SoundId = "rbxassetid://1347011178"
  233. kan.Name = "watisdis"
  234. kan.Looped = true
  235. kan:Play()]]--
  236.  
  237.  
  238. function CameraShake(Times, Power)
  239. coroutine.resume(coroutine.create(function()
  240. FV = Instance.new("BoolValue", Character)
  241. FV.Name = "CameraShake"
  242. for ShakeNum=1,Times do
  243. swait()
  244. local ef=Power
  245. if ef>=1 then
  246. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  247. else
  248. ef=Power*10
  249. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  250. end
  251. end
  252. Humanoid.CameraOffset = Vector3.new(0,0,0)
  253. FV:Destroy()
  254. end))
  255. end
  256.  
  257. CamShake=function(Part,Distan,Power,Times)
  258. local de=Part.Position
  259. for i,v in pairs(workspace:children()) do
  260. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  261. for _,c in pairs(v:children()) do
  262. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  263. local Noob=v.Humanoid
  264. if Noob~=nil then
  265. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  266. --[[local ss=script.CamShake:clone()
  267. ss.Parent=Noob
  268. ss.Power.Value=Power
  269. ss.Times.Value=Times
  270. ss.Disabled=false]]
  271. CameraShake(Times, Power)
  272. end
  273. end
  274. end
  275. end
  276. end
  277. end
  278. end
  279.  
  280. function chatfunc(text,color)
  281. local chat = coroutine.wrap(function()
  282. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  283. Character:FindFirstChild("TalkingBillBoard"):destroy()
  284. end
  285. local naeeym2 = Instance.new("BillboardGui",Character)
  286. naeeym2.Size = UDim2.new(0,100,0,40)
  287. naeeym2.StudsOffset = Vector3.new(0,3,0)
  288. naeeym2.Adornee = Character.Head
  289. naeeym2.Name = "TalkingBillBoard"
  290. local tecks2 = Instance.new("TextLabel",naeeym2)
  291. tecks2.BackgroundTransparency = 1
  292. tecks2.BorderSizePixel = 0
  293. tecks2.Text = ""
  294. tecks2.Font = "SciFi"
  295. tecks2.TextSize = 30
  296. tecks2.TextStrokeTransparency = 0
  297. tecks2.TextColor3 = color
  298. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  299. tecks2.Size = UDim2.new(1,0,0.5,0)
  300. local tecks3 = Instance.new("TextLabel",naeeym2)
  301. tecks3.BackgroundTransparency = 1
  302. tecks3.BorderSizePixel = 0
  303. tecks3.Text = ""
  304. tecks3.Font = "SciFi"
  305. tecks3.TextSize = 30
  306. tecks3.TextStrokeTransparency = 0
  307. tecks3.TextColor3 = Color3.new(0,0,0)
  308. tecks3.TextStrokeColor3 = color
  309. tecks3.Size = UDim2.new(1,0,0.5,0)
  310. coroutine.resume(coroutine.create(function()
  311. while true do
  312. swait(1)
  313. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  314. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  315. tecks2.Rotation = math.random(-5,5)
  316. tecks3.Rotation = math.random(-5,5)
  317. end
  318. end))
  319. for i = 1,string.len(text),1 do
  320. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  321. tecks2.Text = string.sub(text,1,i)
  322. tecks3.Text = string.sub(text,1,i)
  323. swait(1)
  324. end
  325. wait(1)
  326. local randomrot = math.random(1,2)
  327. if randomrot == 1 then
  328. for i = 1, 50 do
  329. swait()
  330. tecks2.Rotation = tecks2.Rotation - .75
  331. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  332. tecks2.TextTransparency = tecks2.TextTransparency + .04
  333. tecks3.Rotation = tecks2.Rotation + .75
  334. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  335. tecks3.TextTransparency = tecks2.TextTransparency + .04
  336. end
  337. elseif randomrot == 2 then
  338. for i = 1, 50 do
  339. swait()
  340. tecks2.Rotation = tecks2.Rotation + .75
  341. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  342. tecks2.TextTransparency = tecks2.TextTransparency + .04
  343. tecks3.Rotation = tecks2.Rotation - .75
  344. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  345. tecks3.TextTransparency = tecks2.TextTransparency + .04
  346. end
  347. end
  348. naeeym2:Destroy()
  349. end)
  350. chat()
  351. end
  352.  
  353.  
  354. local Create = LoadLibrary("RbxUtility").Create
  355.  
  356. CFuncs = {
  357. ["Part"] = {
  358. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  359. local Part = Create("Part"){
  360. Parent = Parent,
  361. Reflectance = Reflectance,
  362. Transparency = Transparency,
  363. CanCollide = false,
  364. Locked = true,
  365. BrickColor = BrickColor.new(tostring(BColor)),
  366. Name = Name,
  367. Size = Size,
  368. Material = Material,
  369. }
  370. RemoveOutlines(Part)
  371. return Part
  372. end;
  373. };
  374.  
  375. ["Mesh"] = {
  376. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  377. local Msh = Create(Mesh){
  378. Parent = Part,
  379. Offset = OffSet,
  380. Scale = Scale,
  381. }
  382. if Mesh == "SpecialMesh" then
  383. Msh.MeshType = MeshType
  384. Msh.MeshId = MeshId
  385. end
  386. return Msh
  387. end;
  388. };
  389.  
  390. ["Mesh"] = {
  391. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  392. local Msh = Create(Mesh){
  393. Parent = Part,
  394. Offset = OffSet,
  395. Scale = Scale,
  396. }
  397. if Mesh == "SpecialMesh" then
  398. Msh.MeshType = MeshType
  399. Msh.MeshId = MeshId
  400. end
  401. return Msh
  402. end;
  403. };
  404.  
  405. ["Weld"] = {
  406. Create = function(Parent, Part0, Part1, C0, C1)
  407. local Weld = Create("Weld"){
  408. Parent = Parent,
  409. Part0 = Part0,
  410. Part1 = Part1,
  411. C0 = C0,
  412. C1 = C1,
  413. }
  414. return Weld
  415. end;
  416. };
  417.  
  418. ["Sound"] = {
  419. Create = function(id, par, vol, pit)
  420. coroutine.resume(coroutine.create(function()
  421. local S = Create("Sound"){
  422. Volume = vol,
  423. Pitch = pit or 1,
  424. SoundId = id,
  425. Parent = par or workspace,
  426. }
  427. wait()
  428. S:play()
  429. game:GetService("Debris"):AddItem(S, 10)
  430. end))
  431. end;
  432. };
  433.  
  434. ["LongSound"] = {
  435. Create = function(id, par, vol, pit)
  436. coroutine.resume(coroutine.create(function()
  437. local S = Create("Sound"){
  438. Volume = vol,
  439. Pitch = pit or 1,
  440. SoundId = id,
  441. Parent = par or workspace,
  442. }
  443. wait()
  444. S:play()
  445. game:GetService("Debris"):AddItem(S, 30)
  446. end))
  447. end;
  448. };
  449.  
  450. ["ParticleEmitter"] = {
  451. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  452. local fp = Create("ParticleEmitter"){
  453. Parent = Parent,
  454. Color = ColorSequence.new(Color1, Color2),
  455. LightEmission = LightEmission,
  456. Size = Size,
  457. Texture = Texture,
  458. Transparency = Transparency,
  459. ZOffset = ZOffset,
  460. Acceleration = Accel,
  461. Drag = Drag,
  462. LockedToPart = LockedToPart,
  463. VelocityInheritance = VelocityInheritance,
  464. EmissionDirection = EmissionDirection,
  465. Enabled = Enabled,
  466. Lifetime = LifeTime,
  467. Rate = Rate,
  468. Rotation = Rotation,
  469. RotSpeed = RotSpeed,
  470. Speed = Speed,
  471. VelocitySpread = VelocitySpread,
  472. }
  473. return fp
  474. end;
  475. };
  476.  
  477. CreateTemplate = {
  478.  
  479. };
  480. }
  481.  
  482.  
  483.  
  484. New = function(Object, Parent, Name, Data)
  485. local Object = Instance.new(Object)
  486. for Index, Value in pairs(Data or {}) do
  487. Object[Index] = Value
  488. end
  489. Object.Parent = Parent
  490. Object.Name = Name
  491. return Object
  492. end
  493. local halocolor = BrickColor.new("White")
  494. local wepcolor = BrickColor.new("Really black")
  495. local m = Instance.new("Model",char)
  496.  
  497. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  498. local p = Instance.new("Part")
  499. p.TopSurface = 0
  500. p.BottomSurface = 0
  501. p.Parent = parent
  502. p.Size = Vector3.new(0.1,0.1,0.1)
  503. p.Transparency = transparency
  504. p.Reflectance = reflectance
  505. p.CanCollide = false
  506. p.Locked = true
  507. p.BrickColor = brickcolor
  508. p.Material = material
  509. return p
  510. end
  511.  
  512. function CreateMesh(parent,meshtype,x1,y1,z1)
  513. local mesh = Instance.new("SpecialMesh",parent)
  514. mesh.MeshType = meshtype
  515. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  516. return mesh
  517. end
  518.  
  519. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  520. local mesh = Instance.new("SpecialMesh",parent)
  521. mesh.MeshType = "FileMesh"
  522. mesh.MeshId = meshid
  523. mesh.Scale = Vector3.new(x1,y1,z1)
  524. return mesh
  525. end
  526.  
  527. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  528. local mesh = Instance.new("SpecialMesh",parent)
  529. mesh.MeshType = "FileMesh"
  530. mesh.MeshId = meshid
  531. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  532. mesh.Scale = Vector3.new(x1,y1,z1)
  533. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  534. return mesh
  535. end
  536.  
  537. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  538. local weld = Instance.new("Weld")
  539. weld.Parent = parent
  540. weld.Part0 = part0
  541. weld.Part1 = part1
  542. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  543. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  544. return weld
  545. end
  546.  
  547. sord = CreateParta(m,0,0,"Granite",wepcolor)
  548. CreateSpecialMesh(sord,"rbxassetid://94840342",0.75,1.25,1.25)
  549. local sordweld = CreateWeld(sord,rarm,sord,0,-3.5,1,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  550.  
  551. at1 = CreateParta(m,1,0,"Neon",halocolor)
  552. CreateMesh(at1,"Sphere",1,1,1)
  553. CreateWeld(at1,sord,at1,0,1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  554. at2 = CreateParta(m,1,0,"Neon",halocolor)
  555. CreateMesh(at2,"Sphere",1,1,1)
  556. CreateWeld(at2,sord,at2,0,-4.3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  557. A0 = Instance.new('Attachment',at1)
  558. A1 = Instance.new('Attachment',at2)
  559. tl1 = Instance.new('Trail',at1)
  560. tl1.Attachment0 = A0
  561. tl1.Attachment1 = A1
  562. tl1.Texture = "http://www.roblox.com/asset/?id=928134823"
  563. tl1.LightEmission = 0
  564. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  565. tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  566. tl1.Lifetime = 0.3
  567.  
  568. hibox = CreateParta(m,1,0,"Granite",BrickColor.random())
  569. hibox.Size = vt(1,2,1)
  570. CreateWeld(hibox,sord,hibox,0,-0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  571.  
  572.  
  573. glow = CreateParta(m,0,0,"Neon",halocolor)
  574. CreateMesh(glow,"Sphere",0.45,1,1)
  575. CreateWeld(glow,sord,glow,0,2.325,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  576.  
  577. local blackem = Instance.new("ParticleEmitter",sord)
  578. blackem.Texture = "rbxassetid://296874871"
  579. blackem.LightEmission = 0.25
  580. blackem.Color = ColorSequence.new(Color3.new(0,0,0))
  581. blackem.Rate = 10
  582. blackem.Lifetime = NumberRange.new(1)
  583. blackem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  584. blackem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.9,0),NumberSequenceKeypoint.new(1,1,0)})
  585. blackem.Speed = NumberRange.new(1,6)
  586. blackem.LockedToPart = true
  587. blackem.Rotation = NumberRange.new(-500,500)
  588. blackem.RotSpeed = NumberRange.new(-500,500)
  589. local blackem2 = blackem:Clone()
  590. blackem2.Parent = sord
  591. blackem2.EmissionDirection = "Bottom"
  592.  
  593. staf = CreateParta(m,0,0,"Granite",wepcolor)
  594. CreateSpecialMesh(staf,"rbxassetid://283705926",1.5,1.5,1.5)
  595. local stafweld = CreateWeld(staf,larm,staf,-0.95,-2,0,math.rad(90),math.rad(0),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  596. glowst = CreateParta(m,0,0,"Neon",halocolor)
  597. CreateMesh(glowst,"Sphere",0.35,0.35,0.35)
  598. CreateWeld(glowst,staf,glowst,0.1,-3.325,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  599.  
  600. --[[extend = CreateParta(Gaunlet,0,0,"Granite",wepcolor)
  601. CreateMesh(extend,"Brick",1.05,1.05,1.05)
  602. CreateWeld(extend,rarm,extend,0,0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  603.  
  604. function RemoveOutlines(part)
  605. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  606. end
  607. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  608. local Part = Create("Part")({
  609. Parent = Parent,
  610. Reflectance = Reflectance,
  611. Transparency = Transparency,
  612. CanCollide = false,
  613. Locked = true,
  614. BrickColor = BrickColor.new(tostring(BColor)),
  615. Name = Name,
  616. Size = Size,
  617. Material = Material
  618. })
  619. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  620. RemoveOutlines(Part)
  621. return Part
  622. end
  623. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  624. local Msh = Create(Mesh)({
  625. Parent = Part,
  626. Offset = OffSet,
  627. Scale = Scale
  628. })
  629. if Mesh == "SpecialMesh" then
  630. Msh.MeshType = MeshType
  631. Msh.MeshId = MeshId
  632. end
  633. return Msh
  634. end
  635. function CreateWeld(Parent, Part0, Part1, C0, C1)
  636. local Weld = Create("Weld")({
  637. Parent = Parent,
  638. Part0 = Part0,
  639. Part1 = Part1,
  640. C0 = C0,
  641. C1 = C1
  642. })
  643. return Weld
  644. end
  645.  
  646. local ff = Instance.new("ForceField",char)
  647. ff.Visible = false
  648.  
  649. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  650. local gui = it(GuiType)
  651. gui.Parent = parent
  652. gui.Text = text
  653. gui.BackgroundTransparency = backtrans
  654. gui.BackgroundColor3 = backcol
  655. gui.SizeConstraint = "RelativeXY"
  656. gui.TextXAlignment = "Center"
  657. gui.TextYAlignment = "Center"
  658. gui.Position = pos
  659. gui.Size = size
  660. gui.Font = "SourceSans"
  661. gui.FontSize = "Size14"
  662. gui.TextWrapped = false
  663. gui.TextStrokeTransparency = 0
  664. gui.TextColor = BrickColor.new("White")
  665. return gui
  666. end
  667.  
  668.  
  669. Player=game:GetService("Players").LocalPlayer
  670. Character=Player.Character
  671. local Mouse = Player:GetMouse()
  672. PlayerGui=Player.PlayerGui
  673. Backpack=Player.Backpack
  674. Torso=Character.Torso
  675. Head=Character.Head
  676. Humanoid=Character.Humanoid
  677. m=Instance.new('Model',Character)
  678. LeftArm=Character["Left Arm"]
  679. LeftLeg=Character["Left Leg"]
  680. RightArm=Character["Right Arm"]
  681. RightLeg=Character["Right Leg"]
  682. LS=Torso["Left Shoulder"]
  683. LH=Torso["Left Hip"]
  684. RS=Torso["Right Shoulder"]
  685. RH=Torso["Right Hip"]
  686. Face = Head.face
  687. Neck=Torso.Neck
  688. it=Instance.new
  689. attacktype=1
  690. vt=Vector3.new
  691. cf=CFrame.new
  692. euler=CFrame.fromEulerAnglesXYZ
  693. angles=CFrame.Angles
  694. cloaked=false
  695. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  696. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  697. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  698. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  699. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  700. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  701. RootPart=Character.HumanoidRootPart
  702. RootJoint=RootPart.RootJoint
  703. RootCF=euler(-1.57,0,3.14)
  704. attack = false
  705. attackdebounce = false
  706. deb=false
  707. equipped=true
  708. hand=false
  709. MMouse=nil
  710. combo=0
  711. mana=0
  712. trispeed=.2
  713. attackmode='none'
  714. local idle=0
  715. local Anim="Idle"
  716. local Effects={}
  717. local gun=false
  718. local shoot=false
  719. local sine = 0
  720. local change = 1
  721. player=nil
  722.  
  723. mouse=Player:GetMouse()
  724. --save shoulders
  725. RSH, LSH=nil, nil
  726. --welds
  727. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  728. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  729. LH=Torso["Left Hip"]
  730. RH=Torso["Right Hip"]
  731. TorsoColor=Torso.BrickColor
  732. function NoOutline(Part)
  733. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  734. end
  735. player=Player
  736. ch=Character
  737. RSH=ch.Torso["Right Shoulder"]
  738. LSH=ch.Torso["Left Shoulder"]
  739. --
  740. RSH.Parent=nil
  741. LSH.Parent=nil
  742. --
  743. RW.Name="Right Shoulder"
  744. RW.Part0=ch.Torso
  745. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  746. RW.C1=cf(0, 0.5, 0)
  747. RW.Part1=ch["Right Arm"]
  748. RW.Parent=ch.Torso
  749. --
  750. LW.Name="Left Shoulder"
  751. LW.Part0=ch.Torso
  752. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  753. LW.C1=cf(0, 0.5, 0)
  754. LW.Part1=ch["Left Arm"]
  755. LW.Parent=ch.Torso
  756.  
  757. local Stats=Instance.new("BoolValue")
  758. Stats.Name="Stats"
  759. Stats.Parent=Character
  760. local Atk=Instance.new("NumberValue")
  761. Atk.Name="Damage"
  762. Atk.Parent=Stats
  763. Atk.Value=1
  764. local Def=Instance.new("NumberValue")
  765. Def.Name="Defense"
  766. Def.Parent=Stats
  767. Def.Value=1
  768. local Speed=Instance.new("NumberValue")
  769. Speed.Name="Speed"
  770. Speed.Parent=Stats
  771. Speed.Value=1
  772. local Mvmt=Instance.new("NumberValue")
  773. Mvmt.Name="Movement"
  774. Mvmt.Parent=Stats
  775. Mvmt.Value=1
  776.  
  777. local donum=0
  778.  
  779.  
  780. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  781. local fp=it("Part")
  782. fp.formFactor=formfactor
  783. fp.Parent=parent
  784. fp.Reflectance=reflectance
  785. fp.Transparency=transparency
  786. fp.CanCollide=false
  787. fp.Locked=true
  788. fp.BrickColor=brickcolor
  789. fp.Name=name
  790. fp.Size=size
  791. fp.Position=Torso.Position
  792. NoOutline(fp)
  793. fp.Material="SmoothPlastic"
  794. fp:BreakJoints()
  795. return fp
  796. end
  797.  
  798. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  799. local mesh=it(Mesh)
  800. mesh.Parent=part
  801. if Mesh=="SpecialMesh" then
  802. mesh.MeshType=meshtype
  803. if meshid~="nil" then
  804. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  805. end
  806. end
  807. mesh.Offset=offset
  808. mesh.Scale=scale
  809. return mesh
  810. end
  811.  
  812. function weld(parent,part0,part1,c0)
  813. local weld=it("Weld")
  814. weld.Parent=parent
  815. weld.Part0=part0
  816. weld.Part1=part1
  817. weld.C0=c0
  818. return weld
  819. end
  820.  
  821. local Color1=Torso.BrickColor
  822.  
  823. local bodvel=Instance.new("BodyVelocity")
  824. local bg=Instance.new("BodyGyro")
  825.  
  826. function swait(num)
  827. if num==0 or num==nil then
  828. game:service'RunService'.Stepped:wait(0)
  829. else
  830. for i=0,num do
  831. game:service'RunService'.Stepped:wait(0)
  832. end
  833. end
  834. end
  835.  
  836.  
  837. so = function(id,par,vol,pit)
  838. coroutine.resume(coroutine.create(function()
  839. local sou = Instance.new("Sound",par or workspace)
  840. sou.Volume=vol
  841. sou.Pitch=pit or 1
  842. sou.SoundId=id
  843. swait()
  844. sou:play()
  845. game:GetService("Debris"):AddItem(sou,6)
  846. end))
  847. end
  848.  
  849. function clerp(a,b,t)
  850. local qa = {QuaternionFromCFrame(a)}
  851. local qb = {QuaternionFromCFrame(b)}
  852. local ax, ay, az = a.x, a.y, a.z
  853. local bx, by, bz = b.x, b.y, b.z
  854. local _t = 1-t
  855. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  856. end
  857.  
  858. function QuaternionFromCFrame(cf)
  859. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  860. local trace = m00 + m11 + m22
  861. if trace > 0 then
  862. local s = math.sqrt(1 + trace)
  863. local recip = 0.5/s
  864. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  865. else
  866. local i = 0
  867. if m11 > m00 then
  868. i = 1
  869. end
  870. if m22 > (i == 0 and m00 or m11) then
  871. i = 2
  872. end
  873. if i == 0 then
  874. local s = math.sqrt(m00-m11-m22+1)
  875. local recip = 0.5/s
  876. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  877. elseif i == 1 then
  878. local s = math.sqrt(m11-m22-m00+1)
  879. local recip = 0.5/s
  880. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  881. elseif i == 2 then
  882. local s = math.sqrt(m22-m00-m11+1)
  883. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  884. end
  885. end
  886. end
  887.  
  888. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  889. local xs, ys, zs = x + x, y + y, z + z
  890. local wx, wy, wz = w*xs, w*ys, w*zs
  891. local xx = x*xs
  892. local xy = x*ys
  893. local xz = x*zs
  894. local yy = y*ys
  895. local yz = y*zs
  896. local zz = z*zs
  897. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  898. end
  899.  
  900. function QuaternionSlerp(a, b, t)
  901. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  902. local startInterp, finishInterp;
  903. if cosTheta >= 0.0001 then
  904. if (1 - cosTheta) > 0.0001 then
  905. local theta = math.acos(cosTheta)
  906. local invSinTheta = 1/math.sin(theta)
  907. startInterp = math.sin((1-t)*theta)*invSinTheta
  908. finishInterp = math.sin(t*theta)*invSinTheta
  909. else
  910. startInterp = 1-t
  911. finishInterp = t
  912. end
  913. else
  914. if (1+cosTheta) > 0.0001 then
  915. local theta = math.acos(-cosTheta)
  916. local invSinTheta = 1/math.sin(theta)
  917. startInterp = math.sin((t-1)*theta)*invSinTheta
  918. finishInterp = math.sin(t*theta)*invSinTheta
  919. else
  920. startInterp = t-1
  921. finishInterp = t
  922. end
  923. end
  924. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  925. end
  926.  
  927. local function CFrameFromTopBack(at, top, back)
  928. local right = top:Cross(back)
  929. return CFrame.new(at.x, at.y, at.z,
  930. right.x, top.x, back.x,
  931. right.y, top.y, back.y,
  932. right.z, top.z, back.z)
  933. end
  934.  
  935. function Triangle(a, b, c)
  936. local edg1 = (c-a):Dot((b-a).unit)
  937. local edg2 = (a-b):Dot((c-b).unit)
  938. local edg3 = (b-c):Dot((a-c).unit)
  939. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  940. a, b, c = a, b, c
  941. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  942. a, b, c = b, c, a
  943. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  944. a, b, c = c, a, b
  945. else
  946. assert(false, "unreachable")
  947. end
  948.  
  949. local len1 = (c-a):Dot((b-a).unit)
  950. local len2 = (b-a).magnitude - len1
  951. local width = (a + (b-a).unit*len1 - c).magnitude
  952.  
  953. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  954.  
  955. local list = {}
  956.  
  957. if len1 > 0.01 then
  958. local w1 = Instance.new('WedgePart', m)
  959. game:GetService("Debris"):AddItem(w1,5)
  960. w1.Material = "SmoothPlastic"
  961. w1.FormFactor = 'Custom'
  962. w1.BrickColor = BrickColor.new("Really red")
  963. w1.Transparency = 0
  964. w1.Reflectance = 0
  965. w1.Material = "SmoothPlastic"
  966. w1.CanCollide = false
  967. local l1 = Instance.new("PointLight",w1)
  968. l1.Color = Color3.new(170,0,0)
  969. NoOutline(w1)
  970. local sz = Vector3.new(0.2, width, len1)
  971. w1.Size = sz
  972. local sp = Instance.new("SpecialMesh",w1)
  973. sp.MeshType = "Wedge"
  974. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  975. w1:BreakJoints()
  976. w1.Anchored = true
  977. w1.Parent = workspace
  978. w1.Transparency = 0.7
  979. table.insert(Effects,{w1,"Disappear",.01})
  980. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  981. table.insert(list,w1)
  982. end
  983.  
  984. if len2 > 0.01 then
  985. local w2 = Instance.new('WedgePart', m)
  986. game:GetService("Debris"):AddItem(w2,5)
  987. w2.Material = "SmoothPlastic"
  988. w2.FormFactor = 'Custom'
  989. w2.BrickColor = BrickColor.new("Really red")
  990. w2.Transparency = 0
  991. w2.Reflectance = 0
  992. w2.Material = "SmoothPlastic"
  993. w2.CanCollide = false
  994. local l2 = Instance.new("PointLight",w2)
  995. l2.Color = Color3.new(170,0,0)
  996. NoOutline(w2)
  997. local sz = Vector3.new(0.2, width, len2)
  998. w2.Size = sz
  999. local sp = Instance.new("SpecialMesh",w2)
  1000. sp.MeshType = "Wedge"
  1001. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1002. w2:BreakJoints()
  1003. w2.Anchored = true
  1004. w2.Parent = workspace
  1005. w2.Transparency = 0.7
  1006. table.insert(Effects,{w2,"Disappear",.01})
  1007. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1008. table.insert(list,w2)
  1009. end
  1010. return unpack(list)
  1011. end
  1012.  
  1013.  
  1014. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1015. if hit.Parent == nil then
  1016. return
  1017. end
  1018. local h = hit.Parent:FindFirstChild("Humanoid")
  1019. for _, v in pairs(hit.Parent:children()) do
  1020. if v:IsA("Humanoid") then
  1021. h = v
  1022. end
  1023. end
  1024. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1025. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1026. return
  1027. end
  1028. local c = Create("ObjectValue")({
  1029. Name = "creator",
  1030. Value = game:service("Players").LocalPlayer,
  1031. Parent = h
  1032. })
  1033. game:GetService("Debris"):AddItem(c, 0.5)
  1034. if HitSound ~= nil and HitPitch ~= nil then
  1035. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1036. end
  1037. local Damage = math.random(minim, maxim)
  1038. local blocked = false
  1039. local block = hit.Parent:findFirstChild("Block")
  1040. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1041. blocked = true
  1042. block.Value = block.Value - 1
  1043. print(block.Value)
  1044. end
  1045. if blocked == false then
  1046. HitHealth = h.Health
  1047. h.Health = h.Health - Damage
  1048. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1049. print("gained kill")
  1050. killcount = killcount + 1
  1051. end
  1052. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1053. else
  1054. h.Health = h.Health - Damage / 2
  1055. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1056. end
  1057. if Type == "Knockdown" then
  1058. local hum = hit.Parent.Humanoid
  1059. hum.PlatformStand = true
  1060. coroutine.resume(coroutine.create(function(HHumanoid)
  1061. swait(1)
  1062. HHumanoid.PlatformStand = false
  1063. end), hum)
  1064. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1065. local bodvol = Create("BodyVelocity")({
  1066. velocity = angle * knockback,
  1067. P = 5000,
  1068. maxForce = Vector3.new(8000, 8000, 8000),
  1069. Parent = hit
  1070. })
  1071. local rl = Create("BodyAngularVelocity")({
  1072. P = 3000,
  1073. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1074. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1075. Parent = hit
  1076. })
  1077. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1078. game:GetService("Debris"):AddItem(rl, 0.5)
  1079. elseif Type == "Normal" then
  1080. local vp = Create("BodyVelocity")({
  1081. P = 500,
  1082. maxForce = Vector3.new(math.huge, 0, math.huge),
  1083. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1084. })
  1085. if knockback > 0 then
  1086. vp.Parent = hit.Parent.Torso
  1087. end
  1088. game:GetService("Debris"):AddItem(vp, 0.5)
  1089. elseif Type == "Up" then
  1090. local bodyVelocity = Create("BodyVelocity")({
  1091. velocity = Vector3.new(0, 20, 0),
  1092. P = 5000,
  1093. maxForce = Vector3.new(8000, 8000, 8000),
  1094. Parent = hit
  1095. })
  1096. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1097. local bodyVelocity = Create("BodyVelocity")({
  1098. velocity = Vector3.new(0, 20, 0),
  1099. P = 5000,
  1100. maxForce = Vector3.new(8000, 8000, 8000),
  1101. Parent = hit
  1102. })
  1103. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1104. elseif Type == "Leech" then
  1105. local hum = hit.Parent.Humanoid
  1106. if hum ~= nil then
  1107. for i = 0, 2 do
  1108. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1109. end
  1110. Humanoid.Health = Humanoid.Health + 10
  1111. end
  1112. elseif Type == "UpKnock" then
  1113. local hum = hit.Parent.Humanoid
  1114. hum.PlatformStand = true
  1115. if hum ~= nil then
  1116. hitr = true
  1117. end
  1118. coroutine.resume(coroutine.create(function(HHumanoid)
  1119. swait(5)
  1120. HHumanoid.PlatformStand = false
  1121. hitr = false
  1122. end), hum)
  1123. local bodyVelocity = Create("BodyVelocity")({
  1124. velocity = Vector3.new(0, 20, 0),
  1125. P = 5000,
  1126. maxForce = Vector3.new(8000, 8000, 8000),
  1127. Parent = hit
  1128. })
  1129. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1130. local bodyVelocity = Create("BodyVelocity")({
  1131. velocity = Vector3.new(0, 20, 0),
  1132. P = 5000,
  1133. maxForce = Vector3.new(8000, 8000, 8000),
  1134. Parent = hit
  1135. })
  1136. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1137. elseif Type == "Snare" then
  1138. local bp = Create("BodyPosition")({
  1139. P = 2000,
  1140. D = 100,
  1141. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1142. position = hit.Parent.Torso.Position,
  1143. Parent = hit.Parent.Torso
  1144. })
  1145. game:GetService("Debris"):AddItem(bp, 1)
  1146. elseif Type == "Slashnare" then
  1147. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1148. for i = 1, math.random(4, 5) do
  1149. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1150. end
  1151. local bp = Create("BodyPosition")({
  1152. P = 2000,
  1153. D = 100,
  1154. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1155. position = hit.Parent.Torso.Position,
  1156. Parent = hit.Parent.Torso
  1157. })
  1158. game:GetService("Debris"):AddItem(bp, 1)
  1159. elseif Type == "Spike" then
  1160. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1161. local bp = Create("BodyPosition")({
  1162. P = 2000,
  1163. D = 100,
  1164. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1165. position = hit.Parent.Torso.Position,
  1166. Parent = hit.Parent.Torso
  1167. })
  1168. game:GetService("Debris"):AddItem(bp, 1)
  1169. elseif Type == "Freeze" then
  1170. local BodPos = Create("BodyPosition")({
  1171. P = 50000,
  1172. D = 1000,
  1173. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1174. position = hit.Parent.Torso.Position,
  1175. Parent = hit.Parent.Torso
  1176. })
  1177. local BodGy = Create("BodyGyro")({
  1178. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1179. P = 20000,
  1180. Parent = hit.Parent.Torso,
  1181. cframe = hit.Parent.Torso.CFrame
  1182. })
  1183. hit.Parent.Torso.Anchored = true
  1184. coroutine.resume(coroutine.create(function(Part)
  1185. swait(1.5)
  1186. Part.Anchored = false
  1187. end), hit.Parent.Torso)
  1188. game:GetService("Debris"):AddItem(BodPos, 3)
  1189. game:GetService("Debris"):AddItem(BodGy, 3)
  1190. end
  1191. local debounce = Create("BoolValue")({
  1192. Name = "DebounceHit",
  1193. Parent = hit.Parent,
  1194. Value = true
  1195. })
  1196. game:GetService("Debris"):AddItem(debounce, Delay)
  1197. c = Instance.new("ObjectValue")
  1198. c.Name = "creator"
  1199. c.Value = Player
  1200. c.Parent = h
  1201. game:GetService("Debris"):AddItem(c, 0.5)
  1202. end
  1203. end
  1204. function ShowDamage(Pos, Text, Time, Color)
  1205. local Rate = 0.03333333333333333
  1206. local Pos = Pos or Vector3.new(0, 0, 0)
  1207. local Text = Text or ""
  1208. local Time = Time or 2
  1209. local Color = Color or Color3.new(1, 0, 1)
  1210. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1211. EffectPart.Anchored = true
  1212. local BillboardGui = Create("BillboardGui")({
  1213. Size = UDim2.new(3, 0, 3, 0),
  1214. Adornee = EffectPart,
  1215. Parent = EffectPart
  1216. })
  1217. local TextLabel = Create("TextLabel")({
  1218. BackgroundTransparency = 1,
  1219. Size = UDim2.new(1, 0, 1, 0),
  1220. Text = Text,
  1221. TextColor3 = Color,
  1222. TextScaled = true,
  1223. Font = Enum.Font.ArialBold,
  1224. Parent = BillboardGui
  1225. })
  1226. game.Debris:AddItem(EffectPart, Time + 0.1)
  1227. EffectPart.Parent = game:GetService("Workspace")
  1228. delay(0, function()
  1229. local Frames = Time / Rate
  1230. for Frame = 1, Frames do
  1231. wait(Rate)
  1232. local Percent = Frame / Frames
  1233. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1234. TextLabel.TextTransparency = Percent
  1235. end
  1236. if EffectPart and EffectPart.Parent then
  1237. EffectPart:Destroy()
  1238. end
  1239. end)
  1240. end
  1241. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1242. for _, c in pairs(workspace:children()) do
  1243. local hum = c:findFirstChild("Humanoid")
  1244. if hum ~= nil then
  1245. local head = c:findFirstChild("Torso")
  1246. if head ~= nil then
  1247. local targ = head.Position - Part.Position
  1248. local mag = targ.magnitude
  1249. if magni >= mag and c.Name ~= Player.Name then
  1250. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1251. end
  1252. end
  1253. end
  1254. end
  1255. end
  1256.  
  1257. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1258. for _, c in pairs(workspace:children()) do
  1259. local hum = c:findFirstChild("Humanoid")
  1260. if hum ~= nil then
  1261. local head = c:findFirstChild("Torso")
  1262. if head ~= nil then
  1263. local targ = head.Position - Part.Position
  1264. local mag = targ.magnitude
  1265. if magni >= mag and c.Name ~= Player.Name then
  1266. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  1267. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1268. end
  1269. end
  1270. end
  1271. end
  1272. end
  1273.  
  1274. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1275. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1276. end
  1277.  
  1278. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1279. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1280. prt.Anchored=true
  1281. prt.CFrame=cframe
  1282. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1283. --http://www.roblox.com/asset/?id=4770560
  1284. game:GetService("Debris"):AddItem(prt,2)
  1285. CF=prt.CFrame
  1286. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1287. for i=0,1,0.2 do
  1288. wait()
  1289. Part.CFrame=CF*cf(0,0,-0.4)
  1290. end
  1291. for i=0,1,delay do
  1292. wait()
  1293. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1294. Mesh.Scale=Mesh.Scale
  1295. end
  1296. for i=0,1,0.1 do
  1297. wait()
  1298. Part.Transparency=i
  1299. end
  1300. Part.Parent=nil
  1301. end),prt,msh,CF)
  1302. end
  1303.  
  1304. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1305. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1306. prt.Anchored=true
  1307. prt.Material = "Neon"
  1308. prt.CFrame=cframe
  1309. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1310. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1311. game:GetService("Debris"):AddItem(prt,5)
  1312. coroutine.resume(coroutine.create(function(Part,Mesh)
  1313. for i=0,1,delay do
  1314. swait()
  1315. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1316. Part.Transparency=i
  1317. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1318. end
  1319. Part.Parent=nil
  1320. end),prt,msh)
  1321. end
  1322.  
  1323. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1324. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1325. prt.Anchored=true
  1326. prt.Material = "Neon"
  1327. prt.CFrame=cframe
  1328. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1329. game:GetService("Debris"):AddItem(prt,5)
  1330. coroutine.resume(coroutine.create(function(Part,Mesh)
  1331. local rtype = rottype
  1332. for i=0,1,delay do
  1333. swait()
  1334. if rtype == 1 then
  1335. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1336. elseif rtype == 2 then
  1337. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1338. end
  1339. Part.Transparency=i
  1340. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1341. end
  1342. Part.Parent=nil
  1343. end),prt,msh)
  1344. end
  1345.  
  1346. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1347. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1348. prt.Anchored=true
  1349. prt.CFrame=cframe
  1350. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1351. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1352. game:GetService("Debris"):AddItem(prt,5)
  1353. coroutine.resume(coroutine.create(function(Part,Mesh)
  1354. for i=0,1,delay do
  1355. wait()
  1356. Part.Transparency=i
  1357. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1358. end
  1359. Part.Parent=nil
  1360. end),prt,msh)
  1361. end
  1362.  
  1363. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1364. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1365. prt.Anchored=true
  1366. prt.Material = "Neon"
  1367. prt.CFrame=cframe
  1368. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1369. game:GetService("Debris"):AddItem(prt,5)
  1370. coroutine.resume(coroutine.create(function(Part,Mesh)
  1371. local rtype = rottype
  1372. for i=0,1,delay do
  1373. swait()
  1374. if rtype == 1 then
  1375. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1376. elseif rtype == 2 then
  1377. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1378. end
  1379. Part.Transparency=i
  1380. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1381. end
  1382. Part.Parent=nil
  1383. end),prt,msh)
  1384. end
  1385.  
  1386. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1387. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1388. prt.Anchored=true
  1389. prt.Material = "Neon"
  1390. prt.CFrame=cframe
  1391. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1392. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1393. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1394. game:GetService("Debris"):AddItem(prt,5)
  1395. coroutine.resume(coroutine.create(function(Part,Mesh)
  1396. local rtype = rottype
  1397. for i=0,1,delay do
  1398. swait()
  1399. if rtype == 1 then
  1400. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1401. elseif rtype == 2 then
  1402. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1403. end
  1404. dec.Transparency=i
  1405. dec2.Transparency=i
  1406. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1407. end
  1408. Part.Parent=nil
  1409. end),prt,msh)
  1410. end
  1411.  
  1412. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1413. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1414. prt.Anchored=true
  1415. prt.Material = "Neon"
  1416. prt.CFrame=cframe
  1417. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1418. game:GetService("Debris"):AddItem(prt,5)
  1419. coroutine.resume(coroutine.create(function(Part,Mesh)
  1420. local rtype = rottype
  1421. for i=0,1,delay do
  1422. swait()
  1423. if rtype == 1 then
  1424. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1425. elseif rtype == 2 then
  1426. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1427. end
  1428. prt.Transparency=i
  1429. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1430. end
  1431. Part.Parent=nil
  1432. end),prt,msh)
  1433. end
  1434.  
  1435. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1436. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1437. prt.Anchored=true
  1438. prt.Material = "Neon"
  1439. prt.CFrame=cframe
  1440. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1441. game:GetService("Debris"):AddItem(prt,5)
  1442. coroutine.resume(coroutine.create(function(Part,Mesh)
  1443. local rtype = rottype
  1444. for i=0,1,delay do
  1445. swait()
  1446. if rtype == 1 then
  1447. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1448. elseif rtype == 2 then
  1449. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1450. end
  1451. prt.Transparency=i
  1452. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1453. end
  1454. Part.Parent=nil
  1455. end),prt,msh)
  1456. end
  1457.  
  1458. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1459. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1460. prt.Anchored=true
  1461. prt.Material = "Neon"
  1462. prt.CFrame=cframe
  1463. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1464. game:GetService("Debris"):AddItem(prt,5)
  1465. coroutine.resume(coroutine.create(function(Part,Mesh)
  1466. local rtype = rottype
  1467. for i=0,1,delay do
  1468. swait()
  1469. if rtype == 1 then
  1470. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1471. elseif rtype == 2 then
  1472. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1473. end
  1474. prt.Transparency=i
  1475. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1476. end
  1477. Part.Parent=nil
  1478. end),prt,msh)
  1479. end
  1480.  
  1481. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1482. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1483. prt.Anchored=true
  1484. prt.Material = "Neon"
  1485. prt.CFrame=cframe
  1486. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1487. game:GetService("Debris"):AddItem(prt,5)
  1488. coroutine.resume(coroutine.create(function(Part,Mesh)
  1489. local rtype = rottype
  1490. for i=0,1,delay do
  1491. swait()
  1492. if rtype == 1 then
  1493. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1494. elseif rtype == 2 then
  1495. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1496. end
  1497. prt.Transparency=i
  1498. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1499. end
  1500. Part.Parent=nil
  1501. end),prt,msh)
  1502. end
  1503.  
  1504. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1505. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1506. prt.Anchored=false
  1507. prt.CFrame=cframe
  1508. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1509. local wld=weld(prt,prt,Parent,cframe)
  1510. game:GetService("Debris"):AddItem(prt,5)
  1511. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1512. for i=0,1,delay do
  1513. wait()
  1514. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1515. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1516. Part.Transparency=i
  1517. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1518. end
  1519. Part.Parent=nil
  1520. end),prt,msh,wld)
  1521. end
  1522.  
  1523. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1524. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1525. prt.Anchored=false
  1526. prt.CFrame=cframe
  1527. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1528. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1529. game:GetService("Debris"):AddItem(prt,5)
  1530. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1531. for i=0,1,delay do
  1532. wait()
  1533. Weld.C0=euler(i*20,0,0)
  1534. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1535. Part.Transparency=i
  1536. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1537. end
  1538. Part.Parent=nil
  1539. end),prt,msh,wld)
  1540. end
  1541.  
  1542. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1543. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1544. prt.Anchored=true
  1545. prt.CFrame=cframe
  1546. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1547. game:GetService("Debris"):AddItem(prt,2)
  1548. coroutine.resume(coroutine.create(function(Part,Mesh)
  1549. for i=0,1,delay do
  1550. wait()
  1551. Part.CFrame=Part.CFrame
  1552. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1553. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1554. prt2.Anchored=true
  1555. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1556. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1557. game:GetService("Debris"):AddItem(prt2,2)
  1558. coroutine.resume(coroutine.create(function(Part,Mesh)
  1559. for i=0,1,0.1 do
  1560. wait()
  1561. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1562. end
  1563. Part.Parent=nil
  1564. end),prt2,msh2)
  1565. end
  1566. for i=0,1,delay*2 do
  1567. wait()
  1568. Part.CFrame=Part.CFrame
  1569. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1570. end
  1571. Part.Parent=nil
  1572. end),prt,msh)
  1573. end
  1574.  
  1575. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1576. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1577. prt.Anchored=true
  1578. prt.CFrame=cframe
  1579. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1580. game:GetService("Debris"):AddItem(prt,2)
  1581. coroutine.resume(coroutine.create(function(Part,Mesh)
  1582. for i=0,1,delay do
  1583. wait()
  1584. Part.CFrame=Part.CFrame
  1585. Part.Transparency=i
  1586. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1587. end
  1588. Part.Parent=nil
  1589. end),prt,msh)
  1590. end
  1591.  
  1592. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1593. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1594. prt.Anchored=true
  1595. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1596. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1597. game:GetService("Debris"):AddItem(prt,2)
  1598. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1599. CF=Part.CFrame
  1600. Numbb=0
  1601. randnumb=math.random()/10
  1602. rand1=math.random()/10
  1603. for i=0,1,rand1 do
  1604. wait()
  1605. CF=CF*cf(0,math.random()/2,0)
  1606. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1607. Part.CFrame=CF*euler(Numbb,0,0)
  1608. Part.Transparency=i
  1609. Numbb=Numbb+randnumb
  1610. end
  1611. Part.Parent=nil
  1612. end),prt,CF,Numbb,randnumb)
  1613. end
  1614.  
  1615. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1616. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1617. prt.Anchored=true
  1618. prt.CFrame=cframe
  1619. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1620. game:GetService("Debris"):AddItem(prt,5)
  1621. coroutine.resume(coroutine.create(function(Part,Mesh)
  1622. for i=0,1,delay do
  1623. wait()
  1624. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1625. Part.Transparency=i
  1626. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1627. end
  1628. Part.Parent=nil
  1629. end),prt,msh)
  1630. end
  1631.  
  1632. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1633. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1634. prt.Anchored=true
  1635. prt.CFrame=cframe
  1636. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1637. game:GetService("Debris"):AddItem(prt,2)
  1638. coroutine.resume(coroutine.create(function(Part,Mesh)
  1639. for i=0,1,delay do
  1640. wait()
  1641. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1642. Part.Transparency=i
  1643. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1644. end
  1645. Part.Parent=nil
  1646. end),prt,msh)
  1647. end
  1648.  
  1649. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1650. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1651. prt.Anchored=true
  1652. prt.CFrame=cframe*cf(x,y,z)
  1653. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1654. game:GetService("Debris"):AddItem(prt,5)
  1655. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1656. local num=math.random()
  1657. local num2=math.random(-3,2)+math.random()
  1658. local numm=0
  1659. for i=0,1,delay*2 do
  1660. swait()
  1661. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1662. Part.Transparency=i
  1663. numm=numm+0.01
  1664. end
  1665. Part.Parent=nil
  1666. Mesh.Parent=nil
  1667. end),prt,msh,x,y,z)
  1668. end
  1669.  
  1670. function dmgstart(dmg,what)
  1671. hitcon = what.Touched:connect(function(hit)
  1672. local hum = hit.Parent:FindFirstChild("Humanoid")
  1673. if hum and not hum:IsDescendantOf(Character) then
  1674. hum:TakeDamage(dmg)
  1675. end
  1676. end)
  1677. end
  1678.  
  1679. function dmgstop()
  1680. hitcon:disconnect()
  1681. end
  1682.  
  1683. function Cloak()
  1684. Face.Parent=nil
  1685. cloaked=true
  1686. for _,v in pairs(Torso.Parent:children()) do
  1687. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1688. coroutine.resume(coroutine.create(function()
  1689. for i=0,1,0.2 do
  1690. wait()
  1691. v.Transparency=i
  1692. end
  1693. v.Transparency=1
  1694. end))
  1695. end
  1696. if v.className=="Hat" then
  1697. hatp=v.Handle
  1698. coroutine.resume(coroutine.create(function(derp)
  1699. for i=0,1,0.2 do
  1700. wait()
  1701. derp.Transparency=i
  1702. end
  1703. derp.Transparency=1
  1704. end),hatp)
  1705. end
  1706. end
  1707. for _,v in pairs(m:children()) do
  1708. if v.className=="Part" then
  1709. coroutine.resume(coroutine.create(function()
  1710. for i=0,1,0.2 do
  1711. wait()
  1712. v.Transparency=i
  1713. end
  1714. v.Transparency=1
  1715. end))
  1716. end
  1717. end
  1718. end
  1719.  
  1720. function UnCloak()
  1721. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1722. Face.Parent=Head
  1723. cloaked=false
  1724. for _,v in pairs(Torso.Parent:children()) do
  1725. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1726. coroutine.resume(coroutine.create(function()
  1727. for i=0,1,0.1 do
  1728. wait()
  1729. v.Transparency=v.Transparency-0.1
  1730. end
  1731. v.Transparency=0
  1732. end))
  1733. end
  1734. if v.className=="Hat" then
  1735. hatp=v.Handle
  1736. coroutine.resume(coroutine.create(function(derp)
  1737. for i=0,1,0.1 do
  1738. wait()
  1739. derp.Transparency=derp.Transparency-0.1
  1740. end
  1741. derp.Transparency=0
  1742. end),hatp)
  1743. end
  1744. end
  1745. for _,v in pairs(m:children()) do
  1746. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1747. coroutine.resume(coroutine.create(function()
  1748. for i=0,1,0.1 do
  1749. wait()
  1750. v.Transparency=v.Transparency-0.1
  1751. end
  1752. v.Transparency=0
  1753. end))
  1754. v.Transparency=0
  1755. end
  1756. end
  1757. end
  1758.  
  1759. local origcolor = BrickColor.new("Dark indigo")
  1760. ---- This section of explosions.
  1761. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1762. local expart = Instance.new("Part",char)
  1763. local expart2 = Instance.new("Part",char)
  1764. local rin = Instance.new("Part",char)
  1765. local rin2 = Instance.new("Part",char)
  1766. local partMesh = Instance.new("SpecialMesh",expart)
  1767. partMesh.MeshType = "Sphere"
  1768. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1769. partMesh2.MeshType = "Sphere"
  1770. local partMesh3 = Instance.new("SpecialMesh",rin)
  1771. partMesh3.MeshType = "Brick"
  1772. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1773. partMesh4.MeshType = "Brick"
  1774. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1775. partMesh.Scale = vt(rad,rad,rad)
  1776. expart.Size = vt(1,1,1)
  1777. expart.Transparency = 1
  1778. expart.Anchored = true
  1779. expart.Material = "Neon"
  1780. expart.BrickColor = bc("White")
  1781. expart.CFrame = par.CFrame
  1782. partMesh2.Scale = vt(rad,rad,rad)
  1783. expart2.Size = vt(1.15,1.15,1.15)
  1784. expart2.Transparency = 0.75
  1785. expart2.Anchored = true
  1786. expart2.Material = "Glass"
  1787. expart2.BrickColor = par.BrickColor
  1788. expart2.CFrame = par.CFrame
  1789. rin.Size = vt(1.15,1.15,1.15)
  1790. rin.Transparency = 1
  1791. rin.Anchored = true
  1792. rin.Material = "Neon"
  1793. rin.BrickColor = par.BrickColor
  1794. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1795. rin2.Size = vt(1.15,1.15,1.15)
  1796. rin2.Transparency = 1
  1797. rin2.Anchored = true
  1798. rin2.Material = "Neon"
  1799. rin2.BrickColor = par.BrickColor
  1800. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1801. partMesh3.Scale = vt(0,1,0)
  1802. partMesh4.Scale = vt(0,1,0)
  1803. local dec2 = Instance.new("Decal", rin)
  1804. dec2.Face = "Top"
  1805. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1806. dec2.Parent = rin
  1807. local dec2b = dec2:Clone()
  1808. dec2b.Face = "Bottom"
  1809. dec2b.Parent = rin
  1810.  
  1811. local dec2a = Instance.new("Decal", rin2)
  1812. dec2a.Face = "Top"
  1813. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1814. dec2a.Parent = rin2
  1815. local dec2ab = dec2a:Clone()
  1816. dec2ab.Face = "Bottom"
  1817. dec2ab.Parent = rin2
  1818. expart.CanCollide = false
  1819. expart2.CanCollide = false
  1820. rin.CanCollide = false
  1821. rin2.CanCollide = false
  1822. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1823. local value = 1*rad/6.5
  1824. for i = 0, 199 do
  1825. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1826. expart.CFrame = expart.CFrame
  1827. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1828. expart2.CFrame = expart.CFrame
  1829. value = value - 0.035*rad/30
  1830. if value < 7.5 then
  1831. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1832. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1833. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1834. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1835. end
  1836. if value < 0 then
  1837. dec2.Transparency = dec2.Transparency + 0.025
  1838. dec2a.Transparency = dec2a.Transparency + 0.025
  1839. dec2b.Transparency = dec2b.Transparency + 0.025
  1840. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1841. expart.Transparency = expart.Transparency + 0.025
  1842. expart2.Transparency = expart2.Transparency + 0.025
  1843. rin.Transparency = rin.Transparency + 0.025
  1844. rin2.Transparency = rin2.Transparency + 0.025
  1845. end
  1846. swait()
  1847. end
  1848. game:GetService("Debris"):AddItem(expart, 1)
  1849. game:GetService("Debris"):AddItem(expart2, 1)
  1850. game:GetService("Debris"):AddItem(rin, 1)
  1851. game:GetService("Debris"):AddItem(rin2, 1)
  1852. end
  1853.  
  1854. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1855. local expart = Instance.new("Part",char)
  1856. local expart2 = Instance.new("Part",char)
  1857. local partMesh = Instance.new("SpecialMesh",expart)
  1858. partMesh.MeshType = "Sphere"
  1859. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1860. partMesh2.MeshType = "Sphere"
  1861. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1862. partMesh.Scale = vt(rad,rad,rad)
  1863. expart.Size = vt(1,1,1)
  1864. expart.Transparency = 0
  1865. expart.Anchored = true
  1866. expart.Material = "Neon"
  1867. expart.BrickColor = bc("White")
  1868. expart.CFrame = par.CFrame
  1869. partMesh2.Scale = vt(rad,rad,rad)
  1870. expart2.Size = vt(1.15,1.15,1.15)
  1871. expart2.Transparency = 0.5
  1872. expart2.Anchored = true
  1873. expart2.Material = "Neon"
  1874. expart2.BrickColor = par.BrickColor
  1875. expart2.CFrame = par.CFrame
  1876. expart.CanCollide = false
  1877. expart2.CanCollide = false
  1878. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1879. local value = 1*rad/6.5
  1880. for i = 0, 75 do
  1881. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1882. expart.CFrame = expart.CFrame
  1883. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1884. expart2.CFrame = expart.CFrame
  1885. value = value - 0.035*rad/5
  1886. if value < 0 then
  1887. value = 0
  1888. expart.Transparency = expart.Transparency + 0.05
  1889. expart2.Transparency = expart2.Transparency + 0.05
  1890. end
  1891. swait()
  1892. end
  1893. game:GetService("Debris"):AddItem(expart, 1)
  1894. game:GetService("Debris"):AddItem(expart2, 1)
  1895. end
  1896.  
  1897. function AreaDanger(rad,par,mindam,maxdam)
  1898. local expart = Instance.new("Part",char)
  1899. local partMesh = Instance.new("SpecialMesh",expart)
  1900. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1901. partMesh.MeshType = "Sphere"
  1902. partMesh.Scale = vt(rad,rad,rad)
  1903. expart.Size = vt(1,1,1)
  1904. expart.Transparency = 0.5
  1905. expart.Anchored = true
  1906. expart.Material = "Neon"
  1907. expart.CanCollide = false
  1908. expart.BrickColor = par.BrickColor
  1909. expart.CFrame = par.CFrame
  1910. local value = 1*rad/5
  1911. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1912. for i = 0, 14 do
  1913. wait()
  1914. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1915. expart.CFrame = expart.CFrame
  1916. value = value - 0.035*rad
  1917. if value < 0 then
  1918. value = 0
  1919. end
  1920. end
  1921. wait(0.25)
  1922. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1923. wait(0.5)
  1924. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1925. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1926. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1927. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1928. for i = 0, 14 do
  1929. wait()
  1930. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1931. expart.CFrame = expart.CFrame
  1932. value = value - 0.035*rad/2
  1933. end
  1934. expart.Transparency = 1
  1935. game:GetService("Debris"):AddItem(expart, 5)
  1936. end
  1937.  
  1938. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1939. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1940. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1941. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1942. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1943. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1944. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1945. for i = 0, 24 do
  1946. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1947. end
  1948. for i = 0, 24 do
  1949. local expart = Instance.new("Part",char)
  1950. expart.Transparency = 1
  1951. expart.Anchored = true
  1952. expart.CanCollide = false
  1953. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1954. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1955. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1956. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1957. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1958. for i = 0, 9 do
  1959. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  1960. end
  1961. game:GetService("Debris"):AddItem(expart, 2)
  1962. wait(0.1)
  1963. end
  1964. end
  1965.  
  1966. function EXterPlosion(par)
  1967. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1968. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1969. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1970. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1971. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1972. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1973. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1974. for i = 0, 24 do
  1975. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  1976. end
  1977. for i = 0, 24 do
  1978. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  1979. end
  1980. end
  1981. ----
  1982.  
  1983. local stackingpower = 1
  1984.  
  1985. function HellsCore()
  1986. attack = true
  1987. --[[for i = 0,1,0.1 do
  1988. swait()
  1989. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  1990. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1991. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1992. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1993. end]]--
  1994.  
  1995. local rng = Instance.new("Part", char)
  1996. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  1997. rng.Anchored = true
  1998. rng.BrickColor = origcolor
  1999. rng.CanCollide = false
  2000. rng.FormFactor = 3
  2001. rng.Name = "Ring"
  2002. rng.Material = "Neon"
  2003. rng.Size = Vector3.new(1, 1, 1)
  2004. rng.Transparency = 1
  2005. rng.TopSurface = 0
  2006. rng.BottomSurface = 0
  2007. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  2008. local rngm = Instance.new("SpecialMesh", rng)
  2009. rngm.MeshType = "Brick"
  2010. local dec = Instance.new("Decal",rng)
  2011. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  2012. dec.Face = "Top"
  2013. local dec2 = dec:Clone()
  2014. dec2.Parent = rng
  2015. dec2.Face = "Bottom"
  2016.  
  2017. local scaler2 = 1
  2018. scaler2 = 1*3
  2019. for i = 0,10,0.1 do
  2020. swait()
  2021. scaler2 = scaler2 - 0.01*3
  2022. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  2023. end
  2024. wait(3)
  2025. for i = 0,10,0.1 do
  2026. swait()
  2027. scaler2 = scaler2 - 0.01*3
  2028. dec.Transparency = dec.Transparency + 0.01
  2029. dec2.Transparency = dec2.Transparency + 0.01
  2030. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  2031. end
  2032. rng:Destroy()
  2033. attack = false
  2034. end
  2035.  
  2036.  
  2037. function FaceMouse()
  2038. Cam = workspace.CurrentCamera
  2039. return {
  2040. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2041. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2042. }
  2043. end
  2044.  
  2045. function FaceMouse2()
  2046. Cam = workspace.CurrentCamera
  2047. return {
  2048. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2049. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2050. }
  2051. end
  2052.  
  2053.  
  2054. local HoldingZ = false
  2055. local HoldingX = false
  2056. local HoldingC = false
  2057. local HoldingV = false
  2058. local HoldingB = false
  2059.  
  2060.  
  2061. function RingEffect(pos,startsize,size,col)
  2062. local lb = Instance.new("Part")
  2063. lb.Parent = char
  2064. lb.BrickColor = col
  2065. lb.CanCollide = false
  2066. lb.Material = "Neon"
  2067. lb.Anchored = true
  2068. lb.TopSurface = 0
  2069. lb.BottomSurface = 0
  2070. lb.Transparency = 1
  2071. lb.Size = vt(1,1,1)
  2072. lb.CFrame = pos
  2073. local thingery = Instance.new("SpecialMesh",lb)
  2074. thingery.MeshType = "Brick"
  2075. thingery.Scale = vt(startsize,0.1,startsize)
  2076. local dec2 = Instance.new("Texture", lb)
  2077. dec2.Face = "Top"
  2078. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2079. dec2.Color3 = lb.Color
  2080. dec2.Parent = lb
  2081. dec2.StudsPerTileU = startsize
  2082. dec2.StudsPerTileV = startsize
  2083. local dec2b = dec2:Clone()
  2084. dec2b.Face = "Bottom"
  2085. dec2b.Parent = lb
  2086. local randomrot = math.random(1,2)
  2087. coroutine.resume(coroutine.create(function()
  2088. for i = 0, 19 do
  2089. swait()
  2090. if randomrot == 1 then
  2091. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  2092. elseif randomrot == 2 then
  2093. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  2094. end
  2095. dec2.Transparency = dec2.Transparency + 0.05
  2096. dec2b.Transparency = dec2b.Transparency + 0.05
  2097. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  2098. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  2099. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  2100. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  2101. thingery.Scale = thingery.Scale + vt(size,0,size)
  2102. end
  2103. lb:Destroy()
  2104. end))
  2105. end
  2106.  
  2107. function SlowRingEffect(pos,startsize,size,col)
  2108. local lb = Instance.new("Part")
  2109. lb.Parent = char
  2110. lb.BrickColor = col
  2111. lb.CanCollide = false
  2112. lb.Material = "Neon"
  2113. lb.Anchored = true
  2114. lb.TopSurface = 0
  2115. lb.BottomSurface = 0
  2116. lb.Transparency = 1
  2117. lb.Size = vt(1,1,1)
  2118. lb.CFrame = pos
  2119. local thingery = Instance.new("SpecialMesh",lb)
  2120. thingery.MeshType = "Brick"
  2121. thingery.Scale = vt(startsize,0.1,startsize)
  2122. local dec2 = Instance.new("Decal", lb)
  2123. dec2.Face = "Top"
  2124. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2125. dec2.Color3 = lb.Color
  2126. dec2.Parent = lb
  2127. local dec2b = dec2:Clone()
  2128. dec2b.Face = "Bottom"
  2129. dec2b.Parent = lb
  2130. local randomrot = math.random(1,2)
  2131. coroutine.resume(coroutine.create(function()
  2132. for i = 0, 49 do
  2133. swait()
  2134. if randomrot == 1 then
  2135. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  2136. elseif randomrot == 2 then
  2137. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  2138. end
  2139. dec2.Transparency = dec2.Transparency + 0.02
  2140. dec2b.Transparency = dec2b.Transparency + 0.02
  2141. thingery.Scale = thingery.Scale + vt(size,0,size)
  2142. end
  2143. lb:Destroy()
  2144. end))
  2145. end
  2146.  
  2147.  
  2148. function groundringaa(pos)
  2149. local rng = Instance.new("Part", char)
  2150. rng.Anchored = true
  2151. rng.BrickColor = origcolor
  2152. rng.CanCollide = false
  2153. rng.FormFactor = 3
  2154. rng.Name = "Ring"
  2155. rng.Size = Vector3.new(1, 1, 1)
  2156. rng.Transparency = 1
  2157. rng.TopSurface = 0
  2158. rng.BottomSurface = 0
  2159. rng.CFrame = pos
  2160. local rngm = Instance.new("SpecialMesh", rng)
  2161. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2162. rngm.Scale = Vector3.new(100,100,5)
  2163. local scaler2 = -10/2
  2164. coroutine.resume(coroutine.create(function()
  2165. for i = 0,10,0.1 do
  2166. swait()
  2167. scaler2 = scaler2 + 0.1/2
  2168. rng.Transparency = rng.Transparency - 0.01
  2169. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2170. end
  2171. rng:Destroy()
  2172. end))
  2173. end
  2174.  
  2175. function groundringbb(pos)
  2176. local rng = Instance.new("Part", char)
  2177. rng.Anchored = true
  2178. rng.BrickColor = origcolor
  2179. rng.CanCollide = false
  2180. rng.FormFactor = 3
  2181. rng.Name = "Ring"
  2182. rng.Size = Vector3.new(1, 1, 1)
  2183. rng.Transparency = 0
  2184. rng.TopSurface = 0
  2185. rng.BottomSurface = 0
  2186. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2187. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2188. local rngm = Instance.new("SpecialMesh", rng)
  2189. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2190. rngm.Scale = Vector3.new(0,0,5)
  2191. local scaler2 = 10
  2192. coroutine.resume(coroutine.create(function()
  2193. for i = 0,10*2,0.1 do
  2194. swait()
  2195. scaler2 = scaler2 - 0.1/2
  2196. rng.Transparency = rng.Transparency + 0.005
  2197. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2198. end
  2199. rng:Destroy()
  2200. end))
  2201. end
  2202.  
  2203. function groundglowaa(pos)
  2204. local rng = Instance.new("Part", char)
  2205. rng.Anchored = true
  2206. rng.BrickColor = origcolor
  2207. rng.CanCollide = false
  2208. rng.FormFactor = 3
  2209. rng.Material = "Neon"
  2210. rng.Name = "Ring"
  2211. rng.Size = Vector3.new(1, 1, 1)
  2212. rng.Transparency = 0
  2213. rng.TopSurface = 0
  2214. rng.BottomSurface = 0
  2215. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2216. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2217. local rngm = Instance.new("SpecialMesh", rng)
  2218. rngm.MeshType = "Sphere"
  2219. rngm.Scale = Vector3.new(0,0,25)
  2220. local scaler2 = 10*2
  2221. coroutine.resume(coroutine.create(function()
  2222. for i = 0,10*2,0.1 do
  2223. swait()
  2224. scaler2 = scaler2 - 0.1*2/2
  2225. rng.Transparency = rng.Transparency + 0.005
  2226. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2227. end
  2228. rng:Destroy()
  2229. end))
  2230. end
  2231.  
  2232. function bemaa(pos)
  2233. local rng = Instance.new("Part", char)
  2234. rng.Anchored = true
  2235. rng.BrickColor = origcolor
  2236. rng.CanCollide = false
  2237. rng.FormFactor = 3
  2238. rng.Material = "Neon"
  2239. rng.Name = "Ring"
  2240. rng.Size = Vector3.new(1, 1, 1)
  2241. rng.Transparency = 0
  2242. rng.TopSurface = 0
  2243. rng.BottomSurface = 0
  2244. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2245. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2246. local rngm = Instance.new("SpecialMesh", rng)
  2247. rngm.MeshType = "Sphere"
  2248. rngm.Scale = Vector3.new(0,0,10000)
  2249. local scaler2 = 1
  2250. coroutine.resume(coroutine.create(function()
  2251. for i = 0,99,0.1 do
  2252. swait()
  2253. scaler2 = scaler2 - 0.0025
  2254. rng.Transparency = rng.Transparency + 0.0025
  2255. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2256. end
  2257. rng:Destroy()
  2258. end))
  2259. end
  2260.  
  2261. function bemaashake(pos)
  2262. local rng = Instance.new("Part", char)
  2263. rng.Anchored = true
  2264. rng.BrickColor = origcolor
  2265. rng.CanCollide = false
  2266. rng.FormFactor = 3
  2267. rng.Material = "Neon"
  2268. rng.Name = "Ring"
  2269. rng.Size = Vector3.new(1, 1, 1)
  2270. rng.Transparency = 0
  2271. rng.TopSurface = 0
  2272. rng.BottomSurface = 0
  2273. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2274. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2275. local rngm = Instance.new("SpecialMesh", rng)
  2276. rngm.MeshType = "Sphere"
  2277. local oof = Instance.new("Part",char)
  2278. oof.Parent = rng
  2279. oof.CFrame = rng.CFrame
  2280. oof.CanCollide = false
  2281. oof.Anchored = true
  2282. oof.Transparency = 1
  2283. rngm.Scale = Vector3.new(0,0,10000)
  2284. local scaler2 = 1*10
  2285. coroutine.resume(coroutine.create(function()
  2286. for i = 0,99,0.1 do
  2287. swait()
  2288. scaler2 = scaler2 - 0.0025*10
  2289. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  2290. rng.Transparency = rng.Transparency + 0.0025
  2291. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2292. end
  2293. rng:Destroy()
  2294. end))
  2295. end
  2296.  
  2297. function groundringlarge(pos)
  2298. local rng = Instance.new("Part", char)
  2299. rng.Anchored = true
  2300. rng.BrickColor = origcolor
  2301. rng.CanCollide = false
  2302. rng.FormFactor = 3
  2303. rng.Name = "Ring"
  2304. rng.Size = Vector3.new(1, 1, 1)
  2305. rng.Transparency = 0
  2306. rng.TopSurface = 0
  2307. rng.BottomSurface = 0
  2308. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2309. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2310. local rngm = Instance.new("SpecialMesh", rng)
  2311. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2312. rngm.Scale = Vector3.new(0,0,5)
  2313. local scaler2 = 10*10
  2314. coroutine.resume(coroutine.create(function()
  2315. for i = 0,10*2,0.1 do
  2316. swait()
  2317. scaler2 = scaler2 - 0.1*10/2
  2318. rng.Transparency = rng.Transparency + 0.005
  2319. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2320. end
  2321. rng:Destroy()
  2322. end))
  2323. end
  2324.  
  2325. function sphere(bonuspeed,type,pos,scale,value,color)
  2326. local type = type
  2327. local rng = Instance.new("Part", char)
  2328. rng.Anchored = true
  2329. rng.BrickColor = color
  2330. rng.CanCollide = false
  2331. rng.FormFactor = 3
  2332. rng.Name = "Ring"
  2333. rng.Material = "Neon"
  2334. rng.Size = Vector3.new(1, 1, 1)
  2335. rng.Transparency = 0
  2336. rng.TopSurface = 0
  2337. rng.BottomSurface = 0
  2338. rng.CFrame = pos
  2339. local rngm = Instance.new("SpecialMesh", rng)
  2340. rngm.MeshType = "Sphere"
  2341. rngm.Scale = scale
  2342. if rainbowmode == true then
  2343. rng.Color = Color3.new(r/255,g/255,b/255)
  2344. end
  2345. local scaler2 = 1
  2346. if type == "Add" then
  2347. scaler2 = 1*value
  2348. elseif type == "Divide" then
  2349. scaler2 = 1/value
  2350. end
  2351. coroutine.resume(coroutine.create(function()
  2352. for i = 0,10/bonuspeed,0.1 do
  2353. swait()
  2354. if rainbowmode == true then
  2355. rng.Color = Color3.new(r/255,g/255,b/255)
  2356. end
  2357. if type == "Add" then
  2358. scaler2 = scaler2 - 0.01*value/bonuspeed
  2359. elseif type == "Divide" then
  2360. scaler2 = scaler2 - 0.01/value*bonuspeed
  2361. end
  2362. if chaosmode == true then
  2363. rng.BrickColor = BrickColor.random()
  2364. end
  2365. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2366. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2367. end
  2368. rng:Destroy()
  2369. end))
  2370. end
  2371.  
  2372. function sphereouter(bonuspeed,type,pos,scale,value,color)
  2373. local type = type
  2374. local rng = Instance.new("Part", char)
  2375. rng.Anchored = true
  2376. rng.BrickColor = color
  2377. rng.CanCollide = false
  2378. rng.FormFactor = 3
  2379. rng.Name = "Ring"
  2380. rng.Material = "Neon"
  2381. rng.Size = Vector3.new(1, 1, 1)
  2382. rng.Transparency = 0
  2383. rng.TopSurface = 0
  2384. rng.BottomSurface = 0
  2385. rng.CFrame = pos
  2386. local rngm = Instance.new("SpecialMesh", rng)
  2387. rngm.MeshType = "Sphere"
  2388. rngm.Scale = scale
  2389. if rainbowmode == true then
  2390. rng.Color = Color3.new(r/255,g/255,b/255)
  2391. end
  2392. local scaler2 = 1
  2393. if type == "Add" then
  2394. scaler2 = 1*value
  2395. elseif type == "Divide" then
  2396. scaler2 = 1/value
  2397. end
  2398. coroutine.resume(coroutine.create(function()
  2399. for i = 0,10/bonuspeed,0.1 do
  2400. swait()
  2401. if rainbowmode == true then
  2402. rng.Color = Color3.new(r/255,g/255,b/255)
  2403. end
  2404. if type == "Add" then
  2405. scaler2 = scaler2 - 0.01*value/bonuspeed
  2406. elseif type == "Divide" then
  2407. scaler2 = scaler2 - 0.01/value*bonuspeed
  2408. end
  2409. if chaosmode == true then
  2410. rng.BrickColor = BrickColor.random()
  2411. end
  2412. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2413. rngm.Scale = rngm.Scale + Vector3.new(0, scaler2*bonuspeed, 0)
  2414. end
  2415. rng:Destroy()
  2416. end))
  2417. end
  2418.  
  2419. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2420. local type = type
  2421. local rng = Instance.new("Part", char)
  2422. rng.Anchored = true
  2423. rng.BrickColor = color
  2424. rng.CanCollide = false
  2425. rng.FormFactor = 3
  2426. rng.Name = "Ring"
  2427. rng.Material = "Neon"
  2428. rng.Size = Vector3.new(1, 1, 1)
  2429. rng.Transparency = 0
  2430. rng.TopSurface = 0
  2431. rng.BottomSurface = 0
  2432. rng.CFrame = pos
  2433. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2434. local rngm = Instance.new("SpecialMesh", rng)
  2435. rngm.MeshType = "Brick"
  2436. rngm.Scale = vt(x1,y1,z1)
  2437. if rainbowmode == true then
  2438. rng.Color = Color3.new(r/255,g/255,b/255)
  2439. end
  2440. local scaler2 = 1
  2441. local speeder = FastSpeed/10
  2442. if type == "Add" then
  2443. scaler2 = 1*value
  2444. elseif type == "Divide" then
  2445. scaler2 = 1/value
  2446. end
  2447. coroutine.resume(coroutine.create(function()
  2448. for i = 0,10/bonuspeed,0.1 do
  2449. swait()
  2450. if rainbowmode == true then
  2451. rng.Color = Color3.new(r/255,g/255,b/255)
  2452. end
  2453. if type == "Add" then
  2454. scaler2 = scaler2 - 0.01*value/bonuspeed
  2455. elseif type == "Divide" then
  2456. scaler2 = scaler2 - 0.01/value*bonuspeed
  2457. end
  2458. if chaosmode == true then
  2459. rng.BrickColor = BrickColor.random()
  2460. end
  2461. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2462. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2463. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2464. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2465. end
  2466. rng:Destroy()
  2467. end))
  2468. end
  2469.  
  2470. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2471. local type = type
  2472. local rng = Instance.new("Part", char)
  2473. rng.Anchored = true
  2474. rng.BrickColor = color
  2475. rng.CanCollide = false
  2476. rng.FormFactor = 3
  2477. rng.Name = "Ring"
  2478. rng.Material = "Neon"
  2479. rng.Size = Vector3.new(1, 1, 1)
  2480. rng.Transparency = 0
  2481. rng.TopSurface = 0
  2482. rng.BottomSurface = 0
  2483. rng.CFrame = pos
  2484. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2485. local rngm = Instance.new("SpecialMesh", rng)
  2486. rngm.MeshType = "Brick"
  2487. rngm.Scale = vt(x1,y1,z1)
  2488. if rainbowmode == true then
  2489. rng.Color = Color3.new(r/255,g/255,b/255)
  2490. end
  2491. local scaler2 = 0
  2492. local speeder = FastSpeed/10
  2493. if type == "Add" then
  2494. scaler2 = 1*value
  2495. elseif type == "Divide" then
  2496. scaler2 = 1/value
  2497. end
  2498. coroutine.resume(coroutine.create(function()
  2499. for i = 0,10/bonuspeed,0.1 do
  2500. swait()
  2501. if rainbowmode == true then
  2502. rng.Color = Color3.new(r/255,g/255,b/255)
  2503. end
  2504. if type == "Add" then
  2505. scaler2 = scaler2 - 0.01*value/bonuspeed
  2506. elseif type == "Divide" then
  2507. scaler2 = scaler2 - 0.01/value*bonuspeed
  2508. end
  2509. if chaosmode == true then
  2510. rng.BrickColor = BrickColor.random()
  2511. end
  2512. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2513. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2514. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2515. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2516. end
  2517. rng:Destroy()
  2518. end))
  2519. end
  2520.  
  2521.  
  2522. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2523. local type = type
  2524. local rng = Instance.new("Part", char)
  2525. rng.Anchored = true
  2526. rng.BrickColor = color
  2527. rng.CanCollide = false
  2528. rng.FormFactor = 3
  2529. rng.Name = "Ring"
  2530. rng.Material = "Neon"
  2531. rng.Size = Vector3.new(1, 1, 1)
  2532. rng.Transparency = 0
  2533. rng.TopSurface = 0
  2534. rng.BottomSurface = 0
  2535. rng.CFrame = pos
  2536. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2537. local rngm = Instance.new("SpecialMesh", rng)
  2538. rngm.MeshType = "Sphere"
  2539. rngm.Scale = vt(x1,y1,z1)
  2540. if rainbowmode == true then
  2541. rng.Color = Color3.new(r/255,g/255,b/255)
  2542. end
  2543. local scaler2 = 1
  2544. local speeder = FastSpeed
  2545. if type == "Add" then
  2546. scaler2 = 1*value
  2547. elseif type == "Divide" then
  2548. scaler2 = 1/value
  2549. end
  2550. coroutine.resume(coroutine.create(function()
  2551. for i = 0,10/bonuspeed,0.1 do
  2552. swait()
  2553. if rainbowmode == true then
  2554. rng.Color = Color3.new(r/255,g/255,b/255)
  2555. end
  2556. if type == "Add" then
  2557. scaler2 = scaler2 - 0.01*value/bonuspeed
  2558. elseif type == "Divide" then
  2559. scaler2 = scaler2 - 0.01/value*bonuspeed
  2560. end
  2561. if chaosmode == true then
  2562. rng.BrickColor = BrickColor.random()
  2563. end
  2564. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2565. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2566. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2567. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2568. end
  2569. rng:Destroy()
  2570. end))
  2571. end
  2572.  
  2573.  
  2574. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2575. local type = type
  2576. local rng = Instance.new("Part", char)
  2577. rng.Anchored = true
  2578. rng.BrickColor = color
  2579. rng.CanCollide = false
  2580. rng.FormFactor = 3
  2581. rng.Name = "Ring"
  2582. rng.Material = "Neon"
  2583. rng.Size = Vector3.new(1, 1, 1)
  2584. rng.Transparency = 1
  2585. rng.TopSurface = 0
  2586. rng.BottomSurface = 0
  2587. rng.CFrame = pos
  2588. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2589. local rngm = Instance.new("SpecialMesh", rng)
  2590. rngm.MeshType = "Sphere"
  2591. rngm.Scale = vt(x1,y1,z1)
  2592. if rainbowmode == true then
  2593. rng.Color = Color3.new(r/255,g/255,b/255)
  2594. end
  2595. local scaler2 = 1
  2596. local speeder = FastSpeed
  2597. if type == "Add" then
  2598. scaler2 = 1*value
  2599. elseif type == "Divide" then
  2600. scaler2 = 1/value
  2601. end
  2602. coroutine.resume(coroutine.create(function()
  2603. for i = 0,10/bonuspeed,0.1 do
  2604. swait()
  2605. if rainbowmode == true then
  2606. rng.Color = Color3.new(r/255,g/255,b/255)
  2607. end
  2608. if type == "Add" then
  2609. scaler2 = scaler2 - 0.01*value/bonuspeed
  2610. elseif type == "Divide" then
  2611. scaler2 = scaler2 - 0.01/value*bonuspeed
  2612. end
  2613. if chaosmode == true then
  2614. rng.BrickColor = BrickColor.random()
  2615. end
  2616. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2617. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2618. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2619. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2620. end
  2621. rng:Destroy()
  2622. end))
  2623. end
  2624.  
  2625.  
  2626. function TargetSelect(person)
  2627. local dd=coroutine.wrap(function()
  2628. if targetted ~= person then
  2629. targetted = person
  2630. img2.Size = UDim2.new(1,0,1,0)
  2631. img2.ImageTransparency = 0
  2632. img2.Position = UDim2.new(0,0,0,0)
  2633. img2.ImageColor3 = Color3.new(0,0,0)
  2634. for i = 0, 2, 0.1 do
  2635. swait()
  2636. img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
  2637. img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
  2638. img2.ImageTransparency = img2.ImageTransparency + 0.05
  2639. end
  2640. end
  2641. end)
  2642. dd()
  2643. end
  2644.  
  2645. function FindNearestTorso(Position, Distance, SinglePlayer)
  2646. if SinglePlayer then
  2647. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2648. end
  2649. local List = {}
  2650. for i, v in pairs(workspace:GetChildren()) do
  2651. if v:IsA("Model") then
  2652. if v:findFirstChild("Torso") then
  2653. if v ~= Character then
  2654. if (v.Torso.Position - Position).magnitude <= Distance then
  2655. table.insert(List, v)
  2656. end
  2657. end
  2658. end
  2659. end
  2660. end
  2661. return List
  2662. end
  2663.  
  2664. function FindNearestHead(Position, Distance, SinglePlayer)
  2665. if SinglePlayer then
  2666. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2667. end
  2668. local List = {}
  2669. for i, v in pairs(workspace:GetChildren()) do
  2670. if v:IsA("Model") then
  2671. if v:findFirstChild("Head") then
  2672. if v ~= Character then
  2673. if (v.Head.Position - Position).magnitude <= Distance then
  2674. table.insert(List, v)
  2675. end
  2676. end
  2677. end
  2678. end
  2679. end
  2680. return List
  2681. end
  2682.  
  2683. function LockOn()
  2684. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2685. TargetSelect(Mouse.Target.Parent)
  2686. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2687. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  2688. TargetSelect(Mouse.Target.Parent)
  2689. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  2690. targetted = nil
  2691. end
  2692. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2693. end
  2694. end
  2695.  
  2696. function dmg(dude)
  2697. if dude.Name ~= Character then
  2698. local bgf = Instance.new("BodyGyro",dude.Head)
  2699. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2700. local val = Instance.new("BoolValue",dude)
  2701. val.Name = "IsHit"
  2702. local ds = coroutine.wrap(function()
  2703. if dude.Name ~= "XXUNORIBOASXX" then
  2704. killcount = killcount + 1
  2705. dude:WaitForChild("Torso"):BreakJoints()
  2706. wait(0.5)
  2707. targetted = nil
  2708. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2709. coroutine.resume(coroutine.create(function()
  2710. for i, v in pairs(dude:GetChildren()) do
  2711. if v:IsA("Accessory") then
  2712. v:Destroy()
  2713. end
  2714. if v:IsA("Humanoid") then
  2715. v:Destroy()
  2716. end
  2717. if v:IsA("CharacterMesh") then
  2718. v:Destroy()
  2719. end
  2720. if v:IsA("Model") then
  2721. v:Destroy()
  2722. end
  2723. if v:IsA("Part") then
  2724. for x, o in pairs(v:GetChildren()) do
  2725. if o:IsA("Decal") then
  2726. o:Destroy()
  2727. end
  2728. end
  2729. coroutine.resume(coroutine.create(function()
  2730. v.Material = "Neon"
  2731. v.CanCollide = false
  2732. local bld = Instance.new("ParticleEmitter",v)
  2733. bld.LightEmission = 1
  2734. bld.Texture = "rbxassetid://284205403"
  2735. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2736. bld.Rate = 50
  2737. bld.Lifetime = NumberRange.new(1)
  2738. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2739. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2740. bld.Speed = NumberRange.new(0,0,0)
  2741. bld.Rotation = NumberRange.new(-500,500)
  2742. bld.RotSpeed = NumberRange.new(-500,500)
  2743. local sbs = Instance.new("BodyPosition", v)
  2744. sbs.P = 3000
  2745. sbs.D = 1000
  2746. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2747. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2748. v.Color = Color3.new(1,1,1)
  2749. coroutine.resume(coroutine.create(function()
  2750. for i = 0, 24 do
  2751. swait(1)
  2752. v.Transparency = v.Transparency + 0.02
  2753. end
  2754. bld.Enabled = false
  2755. for i = 0, 24 do
  2756. swait(1)
  2757. v.Transparency = v.Transparency + 0.02
  2758. end
  2759. v:Destroy()
  2760. dude:Destroy()
  2761. end))
  2762. end))
  2763. end
  2764. end
  2765. end))
  2766. else
  2767. bgf:Destroy()
  2768. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  2769. end
  2770. end)
  2771. ds()
  2772. end
  2773. end
  2774.  
  2775. function MagniStop(Magnitude,Parent,Duration)
  2776. for i, v in pairs(FindNearestTorso(Parent, Magnitude)) do
  2777. if v:FindFirstChild('Head') then
  2778. --[[local origWalk = v.Humanoid.WalkSpeed
  2779. local origJump = v.Humanoid.JumpPower]]--
  2780. local ActiveStop = true
  2781. --[[v.Humanoid.WalkSpeed = 0
  2782. v.Humanoid.JumpPower = 0]]--
  2783. for x, o in pairs(v:GetChildren()) do
  2784. if o:IsA("Part") then
  2785. o.Anchored = true
  2786. end
  2787. end
  2788. coroutine.resume(coroutine.create(function()
  2789. while true do
  2790. swait()
  2791. if ActiveStop ~= false then
  2792. --[[v.Humanoid.WalkSpeed = 0
  2793. v.Humanoid.JumpPower = 0]]--
  2794. for x, o in pairs(v:GetChildren()) do
  2795. if o:IsA("Part") then
  2796. o.Anchored = true
  2797. end
  2798. end
  2799. else
  2800. break
  2801. end
  2802. end
  2803. end))
  2804. local txt = Instance.new("BillboardGui", v)
  2805. txt.Adornee = v.Head
  2806. txt.Name = "StoppedSTAT"
  2807. txt.AlwaysOnTop = true
  2808. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2809. txt.StudsOffset = Vector3.new(-9, 8, 0)
  2810. local text = Instance.new("TextLabel", txt)
  2811. text.Size = UDim2.new(10, 0, 7, 0)
  2812. text.FontSize = "Size24"
  2813. text.TextScaled = true
  2814. text.TextTransparency = 0
  2815. text.BackgroundTransparency = 1
  2816. text.TextTransparency = 0
  2817. text.TextStrokeTransparency = 0.75
  2818. text.Font = "Cartoon"
  2819. text.TextStrokeColor3 = Color3.new(0,0,0)
  2820. text.TextColor3 = Color3.new(0,1,0)
  2821. text.Text = "STOPPED"
  2822. coroutine.resume(coroutine.create(function()
  2823. wait(Duration)
  2824. ActiveStop = false
  2825. for x, o in pairs(v:GetChildren()) do
  2826. if o:IsA("Part") then
  2827. o.Anchored = false
  2828. end
  2829. end
  2830. --[[v.Humanoid.WalkSpeed = origWalk
  2831. v.Humanoid.JumpPower = origJump]]--
  2832. txt:Destroy()
  2833. end))
  2834. end
  2835. end
  2836. end
  2837.  
  2838. function MakeBullet(Type,Speed,Position,Magni,Minim,Maxim,Color,TrailColor,Size,TrailSize,Delay,VolumeEx)
  2839. local ExplodeType = Type
  2840. local spart = Instance.new("Part",char)
  2841. local msh = Instance.new("SpecialMesh",spart)
  2842. msh.MeshType = "Sphere"
  2843. msh.Scale = Size
  2844. CFuncs["Sound"].Create("rbxassetid://260433768", spart, 2, 1)
  2845. spart.Size = vt(1,1,1)
  2846. spart.BrickColor = Color
  2847. spart.Material = "Neon"
  2848. spart.Transparency = 0
  2849. spart.Anchored = true
  2850. spart.CanCollide = false
  2851. spart.CFrame = Position
  2852. local hitted = false
  2853. spart.Anchored = false
  2854. local bv = Instance.new("BodyVelocity")
  2855. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2856. bv.velocity = spart.CFrame.lookVector *Speed
  2857. bv.Parent = spart
  2858. game:GetService("Debris"):AddItem(spart, Delay)
  2859. --[[coroutine.resume(coroutine.create(function()
  2860. while true do
  2861. swait(1)
  2862. if spart.Parent ~= nil and hitted == false then
  2863. sphere(3,"Add",spart.CFrame*CFrame.new(math.random(-TrailSize,TrailSize),math.random(-TrailSize,TrailSize),0)+ spart.CFrame.lookVector*-TrailSize-3,vt(0,0,0),TrailSize,TrailColor)
  2864. elseif spart.Parent == nil then
  2865. break
  2866. end
  2867. end
  2868. end))]]--
  2869. swait(1)
  2870. if ExplodeType == "Normal" then
  2871. local hit =spart.Touched:connect(function(hit)
  2872. if hitted == false then
  2873. hitted = true
  2874. CFuncs["Sound"].Create("rbxassetid://239000203", spart, VolumeEx, 1)
  2875. MagniDamage(spart, Magni, Minim,Maxim, 0, "Normal")
  2876. sphere(1,"Add",spart.CFrame,Size,Magni/20,spart.BrickColor)
  2877. spart.Anchored = true
  2878. spart.Transparency = 1
  2879. end
  2880. end)
  2881. elseif ExplodeType == "Timefreeze" then
  2882. local hit =spart.Touched:connect(function(hit)
  2883. if hitted == false then
  2884. hitted = true
  2885. MagniStop(Magni/1.75,spart.CFrame.p,1)
  2886. MagniDamage(spart, Magni/1.75, Minim,Maxim, 0, "Normal")
  2887. --CFuncs["Sound"].Create("rbxassetid://239000203", spart, 2, 1)
  2888. CFuncs["Sound"].Create("rbxassetid://1208650519", spart, VolumeEx, 1)
  2889. sphere(1,"Add",spart.CFrame,vt(Magni,Magni,Magni),-Magni/50,spart.BrickColor)
  2890. spart.Anchored = true
  2891. spart.Transparency = 1
  2892. end
  2893. end)
  2894. end
  2895. end
  2896. --[[function UnusedSource()
  2897. MagniStop(12.5,targetted.Torso.CFrame.p,2)
  2898. CFuncs["Sound"].Create("rbxassetid://743521656", targetted.Torso, 5, 0.8)
  2899. --CFuncs["Sound"].Create("rbxassetid://1208650519", targetted.Torso, 5, 1)
  2900. sphere(1,"Add",targetted.Torso.CFrame,vt(25,25,25),-0.5,BrickColor.new("White"))
  2901. end]]--
  2902.  
  2903. -------------
  2904. function FaceMouse()
  2905. Cam = workspace.CurrentCamera
  2906. return {
  2907. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2908. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2909. }
  2910. end
  2911.  
  2912. function FaceMouse2()
  2913. Cam = workspace.CurrentCamera
  2914. return {
  2915. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2916. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2917. }
  2918. end
  2919.  
  2920. ---- main combo attacks
  2921.  
  2922. local r = 255
  2923. local g = 0
  2924. local b = 0
  2925. coroutine.resume(coroutine.create(function()
  2926. while wait() do
  2927. for i = 0, 254/5 do
  2928. swait()
  2929. g = g + 5
  2930. end
  2931. for i = 0, 254/5 do
  2932. swait()
  2933. r = r - 5
  2934. end
  2935. for i = 0, 254/5 do
  2936. swait()
  2937. b = b + 5
  2938. end
  2939. for i = 0, 254/5 do
  2940. swait()
  2941. g = g - 5
  2942. end
  2943. for i = 0, 254/5 do
  2944. swait()
  2945. r = r + 5
  2946. end
  2947. for i = 0, 254/5 do
  2948. swait()
  2949. b = b - 5
  2950. end
  2951. end
  2952. end))
  2953.  
  2954. function attackone()
  2955. attack = true
  2956. for i = 0,1,0.1 do
  2957. swait()
  2958. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(20),math.rad(90)),.3)
  2959. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2960. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2961. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2963. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2964. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(110),math.rad(0),math.rad(50)),.3)
  2965. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2966. end
  2967. local con = hibox.Touched:connect(function(hit)
  2968. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2969. end)
  2970. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 1)
  2971. for i = 0,1,0.1 do
  2972. swait()
  2973. sordweld.C0=clerp(sordweld.C0,cf(-1,0,0)*angles(math.rad(-90),math.rad(60),math.rad(90)),.3)
  2974. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2975. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2976. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2977. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2978. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  2979. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  2980. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2981. end
  2982. con:disconnect()
  2983. attack = false
  2984. end
  2985.  
  2986. function attacktwo()
  2987. attack = true
  2988. for i = 0,1,0.1 do
  2989. swait()
  2990. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  2991. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2992. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2993. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2994. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  2995. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  2996. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(50),math.rad(20),math.rad(-30)),.3)
  2997. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2998. end
  2999. local con = hibox.Touched:connect(function(hit)
  3000. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  3001. end)
  3002. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 0.75)
  3003. for i = 0,1,0.1 do
  3004. swait()
  3005. sordweld.C0=clerp(sordweld.C0,cf(-1,-1,0)*angles(math.rad(-90),math.rad(5),math.rad(90)),.3)
  3006. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3007. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3008. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  3009. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3010. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  3011. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  3012. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  3013. end
  3014. con:disconnect()
  3015. attack = false
  3016. end
  3017.  
  3018. function attackthree()
  3019. attack = true
  3020. for i = 0,1,0.1 do
  3021. swait()
  3022. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3023. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3024. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.1)
  3025. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.1)
  3026. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  3027. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-15)),.3)
  3028. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5),math.rad(-10),math.rad(10)),.3)
  3029. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(120),math.rad(0),math.rad(-10)),.3)
  3030. end
  3031. for i = 0,2,0.1 do
  3032. swait()
  3033. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3034. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  3035. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.1)
  3036. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.1)
  3037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  3038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),.3)
  3039. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5),math.rad(-10),math.rad(10)),.3)
  3040. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-55)),.3)
  3041. end
  3042. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  3043. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  3044. MagniDamage(glowst, 7.5, 12,16, 0, "Normal")
  3045. for i = 0, 9 do
  3046. sphereMK(2,0.2,"Add",glowst.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,halocolor,0)
  3047. sphereMK(4,0.4,"Add",glowst.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,halocolor,0)
  3048. end
  3049. CFuncs["Sound"].Create("rbxassetid://183763506", glowst, 1.5, 1)
  3050. attack = false
  3051. end
  3052.  
  3053. function attackorb()
  3054. attack = true
  3055. for i = 0,1,0.1 do
  3056. swait()
  3057. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3058. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3059. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3060. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3061. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.3)
  3062. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.3)
  3063. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(30)),.3)
  3064. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-30)),.3)
  3065. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.3)
  3066. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(120),math.rad(0),math.rad(-55)),.3)
  3067. end
  3068. for i = 0,1,0.1 do
  3069. swait()
  3070. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3071. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  3072. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3073. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3074. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.3)
  3075. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.3)
  3076. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(-20)),.3)
  3077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(20)),.3)
  3078. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.3)
  3079. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-35)),.3)
  3080. end
  3081. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  3082. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  3083. local orb = Instance.new("Part", char)
  3084. orb.BrickColor = halocolor
  3085. orb.CanCollide = false
  3086. orb.FormFactor = 3
  3087. orb.Name = "Ring"
  3088. orb.Material = "Neon"
  3089. orb.Size = Vector3.new(1, 1, 1)
  3090. orb.Transparency = 0
  3091. orb.TopSurface = 0
  3092. orb.BottomSurface = 0
  3093. local orbm = Instance.new("SpecialMesh", orb)
  3094. orbm.MeshType = "Sphere"
  3095. orbm.Name = "SizeMesh"
  3096. orbm.Scale = vt(1.5,1.5,1.5)
  3097. local a = Instance.new("Part",workspace)
  3098. a.Name = "Direction"
  3099. a.Anchored = true
  3100. a.BrickColor = bc("Bright red")
  3101. a.Material = "Neon"
  3102. a.Transparency = 1
  3103. a.CanCollide = false
  3104. local ray = Ray.new(
  3105. glowst.CFrame.p, -- origin
  3106. (mouse.Hit.p - glowst.CFrame.p).unit * 500 -- direction
  3107. )
  3108. local ignore = glowst
  3109. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3110. a.BottomSurface = 10
  3111. a.TopSurface = 10
  3112. local distance = (glowst.CFrame.p - position).magnitude
  3113. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3114. a.CFrame = CFrame.new(glowst.CFrame.p, position) * CFrame.new(0, 0, 0)
  3115. orb.CFrame = a.CFrame
  3116. a:Destroy()
  3117. local bv = Instance.new("BodyVelocity")
  3118. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3119. bv.velocity = orb.CFrame.lookVector*100
  3120. bv.Parent = orb
  3121. local hitted = false
  3122. game:GetService("Debris"):AddItem(orb, 10)
  3123. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3124. coroutine.resume(coroutine.create(function()
  3125. swait(0.1)
  3126. orb.Touched:connect(function(hit)
  3127. if hitted == false then
  3128. hitted = true
  3129. game:GetService("Debris"):AddItem(orb, 5)
  3130. orb.Transparency = 1
  3131. orb.Anchored = true
  3132. for i = 0, 49 do
  3133. PixelBlock(1,math.random(3,10),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  3134. end
  3135. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3136. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3137. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3138. sphere(4,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3139. sphere(5,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3140. CFuncs["Sound"].Create("rbxassetid://468991944", orb, 7.5, 1)
  3141. CFuncs["Sound"].Create("rbxassetid://419447292", orb, 2.5,1)
  3142. MagniDamage(orb, 12.5, 15,22, 0, "Normal")
  3143. end
  3144. end)
  3145. end))
  3146. attack = false
  3147. end
  3148.  
  3149. function Taunt()
  3150. attack = true
  3151. hum.WalkSpeed = 0
  3152. for x = 0, 4 do
  3153. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.75)
  3154. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.6)
  3155. for i = 0,1,0.6 do
  3156. swait()
  3157. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  3158. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3159. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3160. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3161. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3162. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3163. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  3164. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3165. end
  3166. for i = 0,1,0.6 do
  3167. swait()
  3168. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  3169. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3170. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3171. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3172. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3173. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3174. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  3175. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3176. end
  3177. for i = 0,1,0.6 do
  3178. swait()
  3179. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(180),math.rad(0)),.5)
  3180. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3181. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3182. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3183. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3184. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3185. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  3186. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3187. end
  3188. for i = 0,1,0.6 do
  3189. swait()
  3190. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(270),math.rad(0)),.5)
  3191. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3192. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3193. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3196. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  3197. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3198. end
  3199. end
  3200. local ranod = math.random(1,5)
  3201. if ranod == 1 then
  3202. chatfunc("You're not really at this, arent you.",halocolor.Color)
  3203. elseif ranod == 2 then
  3204. chatfunc("I dont like whoever messes me up.",halocolor.Color)
  3205. elseif ranod == 3 then
  3206. chatfunc("I never expected you to be here.",halocolor.Color)
  3207. elseif ranod == 4 then
  3208. chatfunc("You really messed up.",halocolor.Color)
  3209. elseif ranod == 5 then
  3210. chatfunc("Go away.",halocolor.Color)
  3211. end
  3212. for i = 0,15,0.1 do
  3213. swait()
  3214. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  3215. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3216. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3217. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  3218. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  3219. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  3220. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.3)
  3221. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  3222. end
  3223. hum.WalkSpeed = 16
  3224. attack = false
  3225. end
  3226.  
  3227. MAINRUINCOLOR = BrickColor.new("Institutional white")
  3228.  
  3229. function SwordSplosion()
  3230. attack = true
  3231.  
  3232. local orb = Instance.new("Part", char)
  3233. orb.Anchored = true
  3234. orb.BrickColor = MAINRUINCOLOR
  3235. orb.CanCollide = false
  3236. orb.FormFactor = 3
  3237. orb.Name = "Ring"
  3238. orb.Material = "Neon"
  3239. orb.Size = Vector3.new(1, 1, 1)
  3240. orb.Transparency = 1
  3241. orb.TopSurface = 0
  3242. orb.BottomSurface = 0
  3243. local orbm = Instance.new("SpecialMesh", orb)
  3244. orbm.MeshType = "Sphere"
  3245. orbm.Name = "SizeMesh"
  3246. orbm.Scale = vt(0,0,0)
  3247. local scaled = 0.1
  3248. local posid = 0
  3249. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3250. for i = 0, 5, 0.1 do
  3251. swait()
  3252. scaled = scaled - 0.001
  3253. posid = posid - scaled
  3254. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3255. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3256. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3257. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3260. sordweld.C0=clerp(sordweld.C0,cf(0,-1.75,1)*angles(math.rad(90),math.rad(180),math.rad(0)),.1)
  3261. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3262. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3263. end
  3264. swait(60)
  3265. for i =1,3 do
  3266. swait(30)
  3267. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3268. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3269. end
  3270. swait(30)
  3271. for i = 0, 2, 0.1 do
  3272. swait()
  3273. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3274. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3275. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3276. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3278. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3279. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3280. end
  3281. swait(60)
  3282. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3283. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3284. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3285. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3286. MagniDamageWithEffect(tors, 999, math.huge, math.huge, 0, "Normal")
  3287. for i = 1,20 do
  3288. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
  3289. for i = 0, 45 do
  3290. sphereouter(5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3291. end
  3292. for i = 0, 10 do
  3293. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3294. end
  3295. end
  3296. orb:Remove()
  3297. attack = false
  3298. end
  3299.  
  3300. function WAT()
  3301. attack = true
  3302. hum.WalkSpeed = 0
  3303. for x = 0, 9 do
  3304. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.7)
  3305. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.55)
  3306. for i = 0,1,0.6 do
  3307. swait()
  3308. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  3309. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3310. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3311. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3314. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3315. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3316. end
  3317. for i = 0,1,0.6 do
  3318. swait()
  3319. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.5)
  3320. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3321. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3322. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3325. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3326. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3327. end
  3328. for i = 0,1,0.6 do
  3329. swait()
  3330. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  3331. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3332. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3333. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3334. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3335. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3336. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3337. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3338. end
  3339. for i = 0,1,0.6 do
  3340. swait()
  3341. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-270),math.rad(0),math.rad(0)),.5)
  3342. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3343. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3344. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3347. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3348. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3349. end
  3350. end
  3351. local hittery = false
  3352. local ParentedHit = nil
  3353. local con = hibox.Touched:connect(function(hit)
  3354. if hit.Name == "Torso" and hittery == false then
  3355. hittery = true
  3356. ParentedHit = hit
  3357. for i = 0, 24 do
  3358. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3359. end
  3360. sphere(2,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3361. sphere(3,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3362. sphere(4,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3363. CFuncs["Sound"].Create("rbxassetid://153092227", hit, 5, 1)
  3364. sbs = Instance.new("BodyPosition", hit)
  3365. sbs.P = 3000
  3366. sbs.D = 1000
  3367. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3368. sbs.position = hit.CFrame.p
  3369. end
  3370. end)
  3371. for i = 0,2,0.1 do
  3372. swait()
  3373. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  3374. PixelBlockNeg(1,1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0)
  3375. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3376. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.6)
  3377. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.6)
  3378. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5),math.rad(5),math.rad(90)),.6)
  3380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3381. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3382. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.6)
  3383. end
  3384. con:disconnect()
  3385. if hittery == true then
  3386. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3387. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3388. for i = 0, 24 do
  3389. PixelBlock(1,math.random(3,6),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  3390. end
  3391. root.CFrame = ParentedHit.CFrame + ParentedHit.CFrame.lookVector*-8
  3392. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3393. for i = 0, 24 do
  3394. PixelBlock(1,math.random(3,6),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  3395. end
  3396. for x = 0, 9 do
  3397. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3398. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3399. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3400. for i = 0, 2 do
  3401. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3402. PixelBlock(1,math.random(5,25),"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Really black"),0)
  3403. end
  3404. for i = 0,1,0.6 do
  3405. swait()
  3406. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3407. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3408. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3409. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(5),math.rad(90)),.6)
  3411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3412. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3413. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3414. end
  3415. for i = 0,1,0.6 do
  3416. swait()
  3417. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3418. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3419. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3420. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3421. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(90),math.rad(5),math.rad(90)),.6)
  3422. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3423. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3424. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3425. end
  3426. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3427. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3428. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3429. for i = 0, 2 do
  3430. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3431. PixelBlock(1,math.random(5,25),"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Really black"),0)
  3432. end
  3433. for i = 0,1,0.6 do
  3434. swait()
  3435. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3436. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3437. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3438. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3439. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(180),math.rad(5),math.rad(90)),.6)
  3440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3441. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3442. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3443. end
  3444. for i = 0,1,0.6 do
  3445. swait()
  3446. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3447. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3448. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3449. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3450. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(270),math.rad(5),math.rad(90)),.6)
  3451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3452. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3453. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3454. end
  3455. end
  3456.  
  3457. local ex = Instance.new("ParticleEmitter",at1)
  3458. ex.Texture = "rbxassetid://296874871"
  3459. ex.LightEmission = 0.25
  3460. ex.Color = ColorSequence.new(Color3.new(0,0,0))
  3461. ex.Rate = 100
  3462. ex.Lifetime = NumberRange.new(2)
  3463. ex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  3464. ex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3465. ex.Speed = NumberRange.new(10)
  3466. ex.LockedToPart = true
  3467. ex.Rotation = NumberRange.new(-500,500)
  3468. ex.RotSpeed = NumberRange.new(-500,500)
  3469. local ex2 = Instance.new("ParticleEmitter",at1)
  3470. ex2.Texture = "rbxassetid://865418009"
  3471. ex2.LightEmission = 1
  3472. ex2.Color = ColorSequence.new(Color3.new(1,1,1))
  3473. ex2.Rate = 50
  3474. ex2.Lifetime = NumberRange.new(0.25)
  3475. ex2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3476. ex2.Speed = NumberRange.new(75)
  3477. ex2.LockedToPart = true
  3478. ex2.Rotation = NumberRange.new(-500,500)
  3479. local ex3 = Instance.new("ParticleEmitter",glow)
  3480. ex3.Texture = "rbxassetid://865418009"
  3481. ex3.LightEmission = 1
  3482. ex3.Color = ColorSequence.new(Color3.new(1,1,1))
  3483. ex3.Rate = 50
  3484. ex3.Lifetime = NumberRange.new(0.5)
  3485. ex3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,3,0)})
  3486. ex3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3487. ex3.Speed = NumberRange.new(0)
  3488. ex3.LockedToPart = true
  3489. ex3.Rotation = NumberRange.new(-500,500)
  3490. CFuncs["Sound"].Create("rbxassetid://1548527129", sord, 4.5, 1)
  3491. CFuncs["Sound"].Create("rbxassetid://1548599511", root, 8, 1)
  3492. for i = 0,10,0.1 do
  3493. swait()
  3494. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3495. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3496. RH.C0=clerp(RH.C0,cf(1,-1,-0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(-20),math.rad(0)),.3)
  3497. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  3500. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  3501. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.3)
  3502. end
  3503. for i = 0,5,0.1 do
  3504. swait()
  3505. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  3506. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3507. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(20),math.rad(20)),.3)
  3508. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20)),.3)
  3509. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(70)),.3)
  3510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  3511. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(50),math.rad(20),math.rad(-30)),.3)
  3512. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.3)
  3513. end
  3514. CameraEnshaking(3,30,char)
  3515. CameraEnshaking(3,30,ParentedHit.Parent)
  3516. CFuncs["Sound"].Create("rbxassetid://1548544673", sord, 1.5, 1)
  3517. CFuncs["Sound"].Create("rbxassetid://1548538202", sord, 2.5, 1)
  3518. CFuncs["Sound"].Create("rbxassetid://1548544673", ParentedHit, 1.5, 1)
  3519. CFuncs["Sound"].Create("rbxassetid://1548538202", ParentedHit, 2.5, 1)
  3520. CFuncs["Sound"].Create("rbxassetid://1548599962", root, 8, 1)
  3521. for i = 0, 9 do
  3522. sphereouter(1,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),5,BrickColor.new("White"))
  3523. end
  3524. dmg(ParentedHit.Parent)
  3525. sbs:Destroy()
  3526. for i = 0,5,0.1 do
  3527. swait()
  3528. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.5)
  3529. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3530. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(20),math.rad(20)),.5)
  3531. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20)),.5)
  3532. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(-70)),.5)
  3533. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(70)),.5)
  3534. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(120),math.rad(20),math.rad(90)),.5)
  3535. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.5)
  3536. end
  3537. ex.Enabled = false
  3538. ex2.Enabled = false
  3539. ex3.Enabled = false
  3540. game:GetService("Debris"):AddItem(ex, 10)
  3541. game:GetService("Debris"):AddItem(ex2, 10)
  3542. game:GetService("Debris"):AddItem(ex3, 10)
  3543. end
  3544. hum.WalkSpeed = 16
  3545. attack = false
  3546. end
  3547.  
  3548. local FloatMode = false
  3549. local attacktype = 1
  3550. mouse.Button1Down:connect(function()
  3551. if FloatMode == false then
  3552. if attack == false and attacktype == 1 then
  3553. attacktype = 2
  3554. attackone()
  3555. elseif attack == false and attacktype == 2 then
  3556. attacktype = 3
  3557. attacktwo()
  3558. elseif attack == false and attacktype == 3 then
  3559. attacktype = 1
  3560. attackthree()
  3561. end
  3562. elseif FloatMode == true then
  3563. if attack == false then
  3564. attackorb()
  3565. end
  3566. end
  3567. end)
  3568.  
  3569. mouse.KeyDown:connect(function(k)
  3570. if k == "q" and attack == false and FloatMode == false then
  3571. FloatMode = true
  3572. hum.WalkSpeed = 32
  3573. elseif k == "q" and attack == false and FloatMode == true then
  3574. FloatMode = false
  3575. hum.WalkSpeed = 16
  3576. end
  3577.  
  3578. if FloatMode == false then
  3579. if k == "t" and attack == false then
  3580. Taunt()
  3581. end
  3582. if k == "x" and attack == false then
  3583. SwordSplosion()
  3584. end
  3585. if k == "m" and attack == false then
  3586. DashnSlash()
  3587. end
  3588. end
  3589. end)
  3590. idleanim=.4
  3591. hum.Animator.Parent = nil
  3592. while true do
  3593. swait()
  3594. sine = sine + change
  3595. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3596. local velderp=RootPart.Velocity.y
  3597. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3598. if equipped==true or equipped==false then
  3599. if attack==false then
  3600. idle=idle+1
  3601. else
  3602. idle=0
  3603. end
  3604. if idle>=500 then
  3605. if attack==false then
  3606. --Sheath()
  3607. end
  3608. end
  3609. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3610. Anim="Jump"
  3611. if attack==false then
  3612. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3613. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3614. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3615. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3616. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  3617. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  3618. end
  3619. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3620. Anim="Fall"
  3621. if attack==false then
  3622. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3623. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3624. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3625. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3626. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  3627. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  3628. end
  3629. elseif torvel<1 and hitfloor~=nil then
  3630. Anim="Idle"
  3631. if attack==false then
  3632. if FloatMode == false then
  3633. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3634. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3635. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0 + 3 * math.cos(sine / 28))),.1)
  3636. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 - 3 * math.cos(sine / 28))),.1)
  3637. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 + 3 * math.cos(sine / 28)),math.rad(0),math.rad(10)),.1)
  3638. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-10)),.1)
  3639. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-10),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  3640. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  3641. elseif FloatMode == true then
  3642. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3643. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3644. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3645. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3646. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.1)
  3647. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.1)
  3648. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(20)),.1)
  3649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-20)),.1)
  3650. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  3651. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  3652. end
  3653. end
  3654. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  3655. Anim="Walk"
  3656. if attack==false then
  3657. if FloatMode == false then
  3658. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3659. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3660. RH.C0=clerp(RH.C0,cf(1,-1 - 0.25 * math.cos(sine / 8),-0.1 - 0.25 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 40 * math.cos(sine / 8))),.1)
  3661. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.25 * math.cos(sine / 8),-0.1 + 0.25 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 40 * math.cos(sine / 8))),.1)
  3662. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 8))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 16))),.1)
  3663. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 16))),.1)
  3664. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-30),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  3665. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  3666. elseif FloatMode == true then
  3667. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3668. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3669. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3670. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3671. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20 + 3 * math.cos(sine / 18))),.1)
  3672. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20 + 5 * math.cos(sine / 24))),.1)
  3673. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(25 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(0)),.1)
  3674. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3675. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(10 + 2.5 * math.cos(sine / 25)),math.rad(-30),math.rad(5 + 2.5 * math.cos(sine / 25))),.1)
  3676. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-20 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.1)
  3677. end
  3678. end
  3679. elseif torvel>=42 and hitfloor~=nil then
  3680. Anim="Run"
  3681. if attack==false then
  3682. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3683. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3684. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  3685. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  3686. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  3687. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  3688. end
  3689. end
  3690. end
  3691. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement