Advertisement
Script_editor_cool

Untitled

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