Advertisement
doryna2281337

Untitled

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