Advertisement
bmrx13

Untitled

Sep 19th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.76 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end plr = game.Players.LocalPlayer
  139. char = plr.Character
  140. hum = char.Humanoid
  141. local cam = game.Workspace.CurrentCamera
  142. t = char.Torso
  143. h = char.Head
  144. ra = char["Right Arm"]
  145. la = char["Left Arm"]
  146. rl = char["Right Leg"]
  147. ll = char["Left Leg"]
  148. tors = char.Torso
  149. lleg = char["Left Leg"]
  150. root = char.HumanoidRootPart
  151. hed = char.Head
  152. rleg = char["Right Leg"]
  153. rarm = char["Right Arm"]
  154. larm = char["Left Arm"]
  155. vt = Vector3.new
  156. bc = BrickColor.new
  157. br = BrickColor.random
  158. it = Instance.new
  159. cf = CFrame.new
  160.  
  161.  
  162. function CameraShake(Times, Power)
  163. coroutine.resume(coroutine.create(function()
  164. FV = Instance.new("BoolValue", Character)
  165. FV.Name = "CameraShake"
  166. for ShakeNum=1,Times do
  167. swait()
  168. local ef=Power
  169. if ef>=1 then
  170. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  171. else
  172. ef=Power*10
  173. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  174. end
  175. end
  176. Humanoid.CameraOffset = Vector3.new(0,0,0)
  177. FV:Destroy()
  178. end))
  179. end
  180.  
  181. CamShake=function(Part,Distan,Power,Times)
  182. local de=Part.Position
  183. for i,v in pairs(workspace:children()) do
  184. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  185. for _,c in pairs(v:children()) do
  186. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  187. local Noob=v.Humanoid
  188. if Noob~=nil then
  189. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  190. --[[local ss=script.CamShake:clone()
  191. ss.Parent=Noob
  192. ss.Power.Value=Power
  193. ss.Times.Value=Times
  194. ss.Disabled=false]]
  195. CameraShake(Times, Power)
  196. end
  197. end
  198. end
  199. end
  200. end
  201. end
  202. end
  203.  
  204. function chatfunc(text,color)
  205. local chat = coroutine.wrap(function()
  206. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  207. Character:FindFirstChild("TalkingBillBoard"):destroy()
  208. end
  209. local naeeym2 = Instance.new("BillboardGui",Character)
  210. naeeym2.Size = UDim2.new(0,100,0,40)
  211. naeeym2.StudsOffset = Vector3.new(0,3,0)
  212. naeeym2.Adornee = Character.Head
  213. naeeym2.Name = "TalkingBillBoard"
  214. local tecks2 = Instance.new("TextLabel",naeeym2)
  215. tecks2.BackgroundTransparency = 1
  216. tecks2.BorderSizePixel = 0
  217. tecks2.Text = ""
  218. tecks2.Font = "SciFi"
  219. tecks2.TextSize = 30
  220. tecks2.TextStrokeTransparency = 0
  221. tecks2.TextColor3 = color
  222. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  223. tecks2.Size = UDim2.new(1,0,0.5,0)
  224. local tecks3 = Instance.new("TextLabel",naeeym2)
  225. tecks3.BackgroundTransparency = 1
  226. tecks3.BorderSizePixel = 0
  227. tecks3.Text = ""
  228. tecks3.Font = "SciFi"
  229. tecks3.TextSize = 30
  230. tecks3.TextStrokeTransparency = 0
  231. tecks3.TextColor3 = Color3.new(0,0,0)
  232. tecks3.TextStrokeColor3 = color
  233. tecks3.Size = UDim2.new(1,0,0.5,0)
  234. for i = 1,string.len(text),1 do
  235. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  236. tecks2.Text = string.sub(text,1,i)
  237. tecks3.Text = string.sub(text,1,i)
  238. wait(0.01)
  239. end
  240. wait(1)
  241. local randomrot = math.random(1,2)
  242. if randomrot == 1 then
  243. for i = 1, 50 do
  244. swait()
  245. tecks2.Rotation = tecks2.Rotation - .75
  246. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  247. tecks2.TextTransparency = tecks2.TextTransparency + .04
  248. tecks3.Rotation = tecks2.Rotation + .75
  249. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  250. tecks3.TextTransparency = tecks2.TextTransparency + .04
  251. end
  252. elseif randomrot == 2 then
  253. for i = 1, 50 do
  254. swait()
  255. tecks2.Rotation = tecks2.Rotation + .75
  256. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  257. tecks2.TextTransparency = tecks2.TextTransparency + .04
  258. tecks3.Rotation = tecks2.Rotation - .75
  259. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  260. tecks3.TextTransparency = tecks2.TextTransparency + .04
  261. end
  262. end
  263. naeeym2:Destroy()
  264. end)
  265. chat()
  266. end
  267.  
  268.  
  269. local Create = LoadLibrary("RbxUtility").Create
  270.  
  271. CFuncs = {
  272. ["Part"] = {
  273. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  274. local Part = Create("Part"){
  275. Parent = Parent,
  276. Reflectance = Reflectance,
  277. Transparency = Transparency,
  278. CanCollide = false,
  279. Locked = true,
  280. BrickColor = BrickColor.new(tostring(BColor)),
  281. Name = Name,
  282. Size = Size,
  283. Material = Material,
  284. }
  285. RemoveOutlines(Part)
  286. return Part
  287. end;
  288. };
  289.  
  290. ["Mesh"] = {
  291. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  292. local Msh = Create(Mesh){
  293. Parent = Part,
  294. Offset = OffSet,
  295. Scale = Scale,
  296. }
  297. if Mesh == "SpecialMesh" then
  298. Msh.MeshType = MeshType
  299. Msh.MeshId = MeshId
  300. end
  301. return Msh
  302. end;
  303. };
  304.  
  305. ["Mesh"] = {
  306. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  307. local Msh = Create(Mesh){
  308. Parent = Part,
  309. Offset = OffSet,
  310. Scale = Scale,
  311. }
  312. if Mesh == "SpecialMesh" then
  313. Msh.MeshType = MeshType
  314. Msh.MeshId = MeshId
  315. end
  316. return Msh
  317. end;
  318. };
  319.  
  320. ["Weld"] = {
  321. Create = function(Parent, Part0, Part1, C0, C1)
  322. local Weld = Create("Weld"){
  323. Parent = Parent,
  324. Part0 = Part0,
  325. Part1 = Part1,
  326. C0 = C0,
  327. C1 = C1,
  328. }
  329. return Weld
  330. end;
  331. };
  332.  
  333. ["Sound"] = {
  334. Create = function(id, par, vol, pit)
  335. coroutine.resume(coroutine.create(function()
  336. local S = Create("Sound"){
  337. Volume = vol,
  338. Pitch = pit or 1,
  339. SoundId = id,
  340. Parent = par or workspace,
  341. }
  342. wait()
  343. S:play()
  344. game:GetService("Debris"):AddItem(S, 10)
  345. end))
  346. end;
  347. };
  348.  
  349. ["LongSound"] = {
  350. Create = function(id, par, vol, pit)
  351. coroutine.resume(coroutine.create(function()
  352. local S = Create("Sound"){
  353. Volume = vol,
  354. Pitch = pit or 1,
  355. SoundId = id,
  356. Parent = par or workspace,
  357. }
  358. wait()
  359. S:play()
  360. game:GetService("Debris"):AddItem(S, 30)
  361. end))
  362. end;
  363. };
  364.  
  365. ["ParticleEmitter"] = {
  366. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  367. local fp = Create("ParticleEmitter"){
  368. Parent = Parent,
  369. Color = ColorSequence.new(Color1, Color2),
  370. LightEmission = LightEmission,
  371. Size = Size,
  372. Texture = Texture,
  373. Transparency = Transparency,
  374. ZOffset = ZOffset,
  375. Acceleration = Accel,
  376. Drag = Drag,
  377. LockedToPart = LockedToPart,
  378. VelocityInheritance = VelocityInheritance,
  379. EmissionDirection = EmissionDirection,
  380. Enabled = Enabled,
  381. Lifetime = LifeTime,
  382. Rate = Rate,
  383. Rotation = Rotation,
  384. RotSpeed = RotSpeed,
  385. Speed = Speed,
  386. VelocitySpread = VelocitySpread,
  387. }
  388. return fp
  389. end;
  390. };
  391.  
  392. CreateTemplate = {
  393.  
  394. };
  395. }
  396.  
  397.  
  398.  
  399. New = function(Object, Parent, Name, Data)
  400. local Object = Instance.new(Object)
  401. for Index, Value in pairs(Data or {}) do
  402. Object[Index] = Value
  403. end
  404. Object.Parent = Parent
  405. Object.Name = Name
  406. return Object
  407. end
  408.  
  409. local glowcolor = BrickColor.new("Toothpaste")
  410. local glowcolor2 = BrickColor.new("Institutional white")
  411. local patchcolor = BrickColor.new("Really black")
  412. local patchcolor2 = BrickColor.new("Really black")
  413. local wepcolor = BrickColor.new("Smoky grey")
  414. local m = Instance.new("Model",char)
  415.  
  416. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  417. local p = Instance.new("Part")
  418. p.TopSurface = 0
  419. p.BottomSurface = 0
  420. p.Parent = parent
  421. p.Size = Vector3.new(0.05,0.05,0.05)
  422. p.Transparency = transparency
  423. p.Reflectance = reflectance
  424. p.CanCollide = false
  425. p.Locked = true
  426. p.BrickColor = brickcolor
  427. p.Material = material
  428. return p
  429. end
  430.  
  431. function CreateMesh(parent,meshtype,x1,y1,z1)
  432. local mesh = Instance.new("SpecialMesh",parent)
  433. mesh.MeshType = meshtype
  434. mesh.Scale = Vector3.new(x1*20,y1*20,z1*20)
  435. return mesh
  436. end
  437.  
  438. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  439. local mesh = Instance.new("SpecialMesh",parent)
  440. mesh.MeshType = "FileMesh"
  441. mesh.MeshId = meshid
  442. mesh.Scale = Vector3.new(x1,y1,z1)
  443. return mesh
  444. end
  445.  
  446.  
  447. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  448. local mesh = Instance.new("SpecialMesh",parent)
  449. mesh.MeshType = "FileMesh"
  450. mesh.MeshId = meshid
  451. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  452. mesh.Scale = Vector3.new(x1,y1,z1)
  453. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  454. return mesh
  455. end
  456.  
  457. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  458. local weld = Instance.new("Weld")
  459. weld.Parent = parent
  460. weld.Part0 = part0
  461. weld.Part1 = part1
  462. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  463. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  464. return weld
  465. end
  466.  
  467.  
  468. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  469. CreateWeld(sorb,rarm,sorb,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  470.  
  471. local wepcenter = CreateParta(m,1,0,"SmoothPlastic",wepcolor)
  472. local wepweld = CreateWeld(wepcenter,tors,wepcenter,1,0,-4,math.rad(20),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  473.  
  474.  
  475. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  476. CreateMesh(ga,"Brick",0.175,0.175,2.25)
  477. CreateWeld(ga,wepcenter,ga,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  478. ga = CreateParta(m,0,0,"Neon",glowcolor)
  479. CreateMesh(ga,"Brick",0.195,0.195,1.45)
  480. CreateWeld(ga,wepcenter,ga,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  481. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  482. CreateMesh(ga,"Brick",0.215,0.215,1.375)
  483. CreateWeld(ga,wepcenter,ga,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  484. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  485. CreateMesh(ga,"Brick",0.125,0.125,1.25)
  486. CreateWeld(ga,wepcenter,ga,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))
  487.  
  488. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  489. CreateMesh(ga,"Brick",0.125,0.125,0.65)
  490. CreateWeld(ga,wepcenter,ga,0,-0.765,0.35,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  491.  
  492. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  493. CreateMesh(ga,"Brick",0.125,0.125,0.65)
  494. CreateWeld(ga,wepcenter,ga,0,-0.765,-0.35,math.rad(-45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  495.  
  496. ga = CreateParta(m,0,0,"Neon",glowcolor)
  497. CreateMesh(ga,"Brick",0.245,0.245,1.45)
  498. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  499. ga = CreateParta(m,0,0,"Neon",glowcolor)
  500. CreateMesh(ga,"Brick",0.265,0.265,0.45)
  501. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  502. ga = CreateParta(m,0,0,"SmoothPlastic",patchcolor)
  503. CreateMesh(ga,"Brick",0.285,0.285,0.35)
  504. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  505. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  506. CreateMesh(ga,"Brick",0.2525,0.2525,1.375)
  507. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  508. cryst = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  509. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.55,0.55,1.5)
  510. CreateWeld(cryst,wepcenter,cryst,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  511. cryst = CreateParta(m,0,0,"SmoothPlastic",glowcolor2)
  512. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.575,0.575,1)
  513. CreateWeld(cryst,wepcenter,cryst,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  514. cryst = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  515. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.45,0.45,0.5)
  516. CreateWeld(cryst,wepcenter,cryst,0,0,-1.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  517. cryst = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  518. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.45,0.45,0.5)
  519. CreateWeld(cryst,wepcenter,cryst,0,0,-0.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  520. cryst = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  521. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.5,0.5,2)
  522. CreateWeld(cryst,wepcenter,cryst,0,0,-2.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  523. cryst = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  524. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",1,1,0.5)
  525. CreateWeld(cryst,wepcenter,cryst,0,0,1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  526. crysta = CreateParta(m,0,0,"SmoothPlastic",patchcolor)
  527. CreateSpecialMesh(crysta,"http://www.roblox.com/Asset/?id=9756362",1,1,0.35)
  528. CreateWeld(crysta,cryst,crysta,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  529.  
  530. orbe = CreateParta(m,0,0,"Neon",glowcolor)
  531. CreateMesh(orbe,"Sphere",0.35,0.35,0.25)
  532. CreateWeld(orbe,wepcenter,orbe,0,0,1.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  533.  
  534.  
  535. orbem = CreateParta(m,0.75,0,"Neon",glowcolor)
  536. CreateMesh(orbem,"Cylinder",2,0.45,0.45)
  537. CreateWeld(orbem,orbe,orbem,0.75,0,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  538.  
  539. orba = CreateParta(m,0,0,"Neon",glowcolor2)
  540. CreateMesh(orba,"Sphere",0.65,0.65,0.65)
  541. CreateWeld(orba,wepcenter,orba,0,0,2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  542.  
  543.  
  544. ger = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  545. CreateSpecialMesh(ger,"http://www.roblox.com/asset?id=156292343",1.5,1.5,1.5)
  546. local orbitalweld = CreateWeld(ger,orba,ger,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  547.  
  548. boi = CreateParta(m,0,0,"SmoothPlastic",patchcolor)
  549. CreateSpecialMesh(boi,"http://www.roblox.com/asset?id=156292343",2,2,7.5)
  550. CreateWeld(boi,cryst,boi,0,0,2,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  551. boi = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  552. CreateSpecialMesh(boi,"http://www.roblox.com/asset?id=156292343",3,3,2.5)
  553. CreateWeld(boi,cryst,boi,0,0,2,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  554. crysta = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  555. CreateSpecialMesh(crysta,"http://www.roblox.com/Asset/?id=9756362",1,1,0.65)
  556. CreateWeld(crysta,cryst,crysta,0,0,2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  557.  
  558. blad = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  559. CreateMesh(blad,"Brick",0.15,1.5,6.75)
  560. CreateWeld(blad,wepcenter,blad,0,0,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  561. bladn = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  562. CreateMesh(bladn,"Brick",0.1,1.65,6.75)
  563. CreateWeld(bladn,wepcenter,bladn,0,0,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  564.  
  565. local hitbox = CreateParta(m,1,0,"SmoothPlastic",BrickColor.random())
  566. hitbox.Size = Vector3.new(0.5,0.5,10)
  567. CreateWeld(hitbox,blad,hitbox,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  568.  
  569. -----------
  570.  
  571. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  572. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",1,1,5)
  573. CreateWeld(boipatt,wepcenter,boipatt,4,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  574. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  575. CreateMesh(orbpatt,"Sphere",0.8,0.8,0.225)
  576. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  577.  
  578. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  579. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",0.8,0.8,5)
  580. CreateWeld(boipatt,wepcenter,boipatt,6,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  581. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  582. CreateMesh(orbpatt,"Sphere",0.6,0.6,0.225)
  583. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  584.  
  585. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  586. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",0.6,0.6,5)
  587. CreateWeld(boipatt,wepcenter,boipatt,8,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  588. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  589. CreateMesh(orbpatt,"Sphere",0.4,0.4,0.225)
  590. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  591.  
  592. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  593. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",0.4,0.4,5)
  594. CreateWeld(boipatt,wepcenter,boipatt,10,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  595. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  596. CreateMesh(orbpatt,"Sphere",0.25,0.25,0.225)
  597. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  598.  
  599. patt = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  600. CreateMesh(patt,"Brick",0.175,0.25,6.75)
  601. CreateWeld(patt,wepcenter,patt,0,0.45,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  602. pattw = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  603. CreateMesh(pattw,"Wedge",0.175,0.25,0.25)
  604. CreateWeld(pattw,wepcenter,pattw,0,-0.45,10,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  605.  
  606. patte = CreateParta(m,0,0,"Neon",glowcolor)
  607. CreateMesh(patte,"Brick",0.185,0.175,1)
  608. CreateWeld(patte,wepcenter,patte,0,0.45,3.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  609.  
  610. patte = CreateParta(m,0,0,"Neon",glowcolor)
  611. CreateMesh(patte,"Brick",0.185,0.175,1)
  612. CreateWeld(patte,wepcenter,patte,0,0.45,4.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  613.  
  614. patte = CreateParta(m,0,0,"Neon",glowcolor)
  615. CreateMesh(patte,"Brick",0.185,0.175,1)
  616. CreateWeld(patte,wepcenter,patte,0,0.45,6,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  617.  
  618. patte = CreateParta(m,0,0,"Neon",glowcolor)
  619. CreateMesh(patte,"Brick",0.185,0.175,1)
  620. CreateWeld(patte,wepcenter,patte,0,0.45,7.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  621.  
  622. patte = CreateParta(m,0,0,"Neon",glowcolor)
  623. CreateMesh(patte,"Brick",0.185,0.175,1)
  624. CreateWeld(patte,wepcenter,patte,0,0.45,8.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  625.  
  626. patte = CreateParta(m,0,0,"Neon",glowcolor)
  627. CreateMesh(patte,"Brick",0.185,0.175,0.65)
  628. CreateWeld(patte,wepcenter,patte,0,0.45,9.55,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  629. pattew = CreateParta(m,0,0,"Neon",glowcolor)
  630. CreateMesh(pattew,"Wedge",0.185,0.175,0.15)
  631. CreateWeld(pattew,wepcenter,pattew,0,-0.45,9.95,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  632.  
  633. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  634. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  635. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  636. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  637. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  638. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,5.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  639. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  640. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  641. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,4.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  642.  
  643. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  644. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  645. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,7,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  646. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  647. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  648. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,7.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  649. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  650. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  651. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  652.  
  653. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  654. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  655. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,9,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  656. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  657. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  658. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,9.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  659. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  660. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  661. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,8.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  662.  
  663. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  664. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  665. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,11,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  666. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  667. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  668. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,10.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  669. -----------
  670.  
  671. bladt = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  672. CreateMesh(bladt,"Wedge",0.15,1.5,2)
  673. CreateWeld(bladt,wepcenter,bladt,0,0,10.85,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  674. bladtn = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  675. CreateMesh(bladtn,"Wedge",0.1,1.65,2.2)
  676. CreateWeld(bladtn,wepcenter,bladtn,0,0,10.975,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  677. ------
  678.  
  679.  
  680. function RemoveOutlines(part)
  681. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  682. end
  683. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  684. local Part = Create("Part")({
  685. Parent = Parent,
  686. Reflectance = Reflectance,
  687. Transparency = Transparency,
  688. CanCollide = false,
  689. Locked = true,
  690. BrickColor = BrickColor.new(tostring(BColor)),
  691. Name = Name,
  692. Size = Size,
  693. Material = Material
  694. })
  695. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  696. RemoveOutlines(Part)
  697. return Part
  698. end
  699. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  700. local Msh = Create(Mesh)({
  701. Parent = Part,
  702. Offset = OffSet,
  703. Scale = Scale
  704. })
  705. if Mesh == "SpecialMesh" then
  706. Msh.MeshType = MeshType
  707. Msh.MeshId = MeshId
  708. end
  709. return Msh
  710. end
  711. function CreateWeld(Parent, Part0, Part1, C0, C1)
  712. local Weld = Create("Weld")({
  713. Parent = Parent,
  714. Part0 = Part0,
  715. Part1 = Part1,
  716. C0 = C0,
  717. C1 = C1
  718. })
  719. return Weld
  720. end
  721.  
  722. Player=game:GetService("Players").LocalPlayer
  723. Character=Player.Character
  724. PlayerGui=Player.PlayerGui
  725. Backpack=Player.Backpack
  726. Torso=Character.Torso
  727. Head=Character.Head
  728. Humanoid=Character.Humanoid
  729. m=Instance.new('Model',Character)
  730. LeftArm=Character["Left Arm"]
  731. LeftLeg=Character["Left Leg"]
  732. RightArm=Character["Right Arm"]
  733. RightLeg=Character["Right Leg"]
  734. LS=Torso["Left Shoulder"]
  735. LH=Torso["Left Hip"]
  736. RS=Torso["Right Shoulder"]
  737. RH=Torso["Right Hip"]
  738. Face = Head.face
  739. Neck=Torso.Neck
  740. it=Instance.new
  741. attacktype=1
  742. vt=Vector3.new
  743. cf=CFrame.new
  744. euler=CFrame.fromEulerAnglesXYZ
  745. angles=CFrame.Angles
  746. cloaked=false
  747. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  748. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  749. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  750. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  751. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  752. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  753. RootPart=Character.HumanoidRootPart
  754. RootJoint=RootPart.RootJoint
  755. RootCF=euler(-1.57,0,3.14)
  756. attack = false
  757. attackdebounce = false
  758. deb=false
  759. equipped=true
  760. hand=false
  761. MMouse=nil
  762. combo=0
  763. mana=0
  764. trispeed=.2
  765. attackmode='none'
  766. local idle=0
  767. local Anim="Idle"
  768. local Effects={}
  769. local gun=false
  770. local shoot=false
  771. local sine = 0
  772. local change = 1
  773. player=nil
  774.  
  775. mouse=Player:GetMouse()
  776. --save shoulders
  777. RSH, LSH=nil, nil
  778. --welds
  779. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  780. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  781. LH=Torso["Left Hip"]
  782. RH=Torso["Right Hip"]
  783. TorsoColor=Torso.BrickColor
  784. function NoOutline(Part)
  785. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  786. end
  787. player=Player
  788. ch=Character
  789. RSH=ch.Torso["Right Shoulder"]
  790. LSH=ch.Torso["Left Shoulder"]
  791. --
  792. RSH.Parent=nil
  793. LSH.Parent=nil
  794. --
  795. RW.Name="Right Shoulder"
  796. RW.Part0=ch.Torso
  797. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  798. RW.C1=cf(0, 0.5, 0)
  799. RW.Part1=ch["Right Arm"]
  800. RW.Parent=ch.Torso
  801. --
  802. LW.Name="Left Shoulder"
  803. LW.Part0=ch.Torso
  804. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  805. LW.C1=cf(0, 0.5, 0)
  806. LW.Part1=ch["Left Arm"]
  807. LW.Parent=ch.Torso
  808.  
  809. local Stats=Instance.new("BoolValue")
  810. Stats.Name="Stats"
  811. Stats.Parent=Character
  812. local Atk=Instance.new("NumberValue")
  813. Atk.Name="Damage"
  814. Atk.Parent=Stats
  815. Atk.Value=1
  816. local Def=Instance.new("NumberValue")
  817. Def.Name="Defense"
  818. Def.Parent=Stats
  819. Def.Value=1
  820. local Speed=Instance.new("NumberValue")
  821. Speed.Name="Speed"
  822. Speed.Parent=Stats
  823. Speed.Value=1
  824. local Mvmt=Instance.new("NumberValue")
  825. Mvmt.Name="Movement"
  826. Mvmt.Parent=Stats
  827. Mvmt.Value=1
  828.  
  829. local donum=0
  830.  
  831.  
  832. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  833. local fp=it("Part")
  834. fp.formFactor=formfactor
  835. fp.Parent=parent
  836. fp.Reflectance=reflectance
  837. fp.Transparency=transparency
  838. fp.CanCollide=false
  839. fp.Locked=true
  840. fp.BrickColor=brickcolor
  841. fp.Name=name
  842. fp.Size=size
  843. fp.Position=Torso.Position
  844. NoOutline(fp)
  845. fp.Material="SmoothPlastic"
  846. fp:BreakJoints()
  847. return fp
  848. end
  849.  
  850. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  851. local mesh=it(Mesh)
  852. mesh.Parent=part
  853. if Mesh=="SpecialMesh" then
  854. mesh.MeshType=meshtype
  855. if meshid~="nil" then
  856. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  857. end
  858. end
  859. mesh.Offset=offset
  860. mesh.Scale=scale
  861. return mesh
  862. end
  863.  
  864. function weld(parent,part0,part1,c0)
  865. local weld=it("Weld")
  866. weld.Parent=parent
  867. weld.Part0=part0
  868. weld.Part1=part1
  869. weld.C0=c0
  870. return weld
  871. end
  872.  
  873. local Color1=Torso.BrickColor
  874.  
  875. local bodvel=Instance.new("BodyVelocity")
  876. local bg=Instance.new("BodyGyro")
  877.  
  878. function swait(num)
  879. if num==0 or num==nil then
  880. game:service'RunService'.Stepped:wait(0)
  881. else
  882. for i=0,num do
  883. game:service'RunService'.Stepped:wait(0)
  884. end
  885. end
  886. end
  887.  
  888.  
  889. so = function(id,par,vol,pit)
  890. coroutine.resume(coroutine.create(function()
  891. local sou = Instance.new("Sound",par or workspace)
  892. sou.Volume=vol
  893. sou.Pitch=pit or 1
  894. sou.SoundId=id
  895. swait()
  896. sou:play()
  897. game:GetService("Debris"):AddItem(sou,6)
  898. end))
  899. end
  900.  
  901. function clerp(a,b,t)
  902. local qa = {QuaternionFromCFrame(a)}
  903. local qb = {QuaternionFromCFrame(b)}
  904. local ax, ay, az = a.x, a.y, a.z
  905. local bx, by, bz = b.x, b.y, b.z
  906. local _t = 1-t
  907. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  908. end
  909.  
  910. function QuaternionFromCFrame(cf)
  911. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  912. local trace = m00 + m11 + m22
  913. if trace > 0 then
  914. local s = math.sqrt(1 + trace)
  915. local recip = 0.5/s
  916. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  917. else
  918. local i = 0
  919. if m11 > m00 then
  920. i = 1
  921. end
  922. if m22 > (i == 0 and m00 or m11) then
  923. i = 2
  924. end
  925. if i == 0 then
  926. local s = math.sqrt(m00-m11-m22+1)
  927. local recip = 0.5/s
  928. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  929. elseif i == 1 then
  930. local s = math.sqrt(m11-m22-m00+1)
  931. local recip = 0.5/s
  932. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  933. elseif i == 2 then
  934. local s = math.sqrt(m22-m00-m11+1)
  935. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  936. end
  937. end
  938. end
  939.  
  940. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  941. local xs, ys, zs = x + x, y + y, z + z
  942. local wx, wy, wz = w*xs, w*ys, w*zs
  943. local xx = x*xs
  944. local xy = x*ys
  945. local xz = x*zs
  946. local yy = y*ys
  947. local yz = y*zs
  948. local zz = z*zs
  949. 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))
  950. end
  951.  
  952. function QuaternionSlerp(a, b, t)
  953. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  954. local startInterp, finishInterp;
  955. if cosTheta >= 0.0001 then
  956. if (1 - cosTheta) > 0.0001 then
  957. local theta = math.acos(cosTheta)
  958. local invSinTheta = 1/math.sin(theta)
  959. startInterp = math.sin((1-t)*theta)*invSinTheta
  960. finishInterp = math.sin(t*theta)*invSinTheta
  961. else
  962. startInterp = 1-t
  963. finishInterp = t
  964. end
  965. else
  966. if (1+cosTheta) > 0.0001 then
  967. local theta = math.acos(-cosTheta)
  968. local invSinTheta = 1/math.sin(theta)
  969. startInterp = math.sin((t-1)*theta)*invSinTheta
  970. finishInterp = math.sin(t*theta)*invSinTheta
  971. else
  972. startInterp = t-1
  973. finishInterp = t
  974. end
  975. end
  976. 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
  977. end
  978.  
  979. local function CFrameFromTopBack(at, top, back)
  980. local right = top:Cross(back)
  981. return CFrame.new(at.x, at.y, at.z,
  982. right.x, top.x, back.x,
  983. right.y, top.y, back.y,
  984. right.z, top.z, back.z)
  985. end
  986.  
  987. function Triangle(a, b, c)
  988. local edg1 = (c-a):Dot((b-a).unit)
  989. local edg2 = (a-b):Dot((c-b).unit)
  990. local edg3 = (b-c):Dot((a-c).unit)
  991. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  992. a, b, c = a, b, c
  993. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  994. a, b, c = b, c, a
  995. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  996. a, b, c = c, a, b
  997. else
  998. assert(false, "unreachable")
  999. end
  1000.  
  1001. local len1 = (c-a):Dot((b-a).unit)
  1002. local len2 = (b-a).magnitude - len1
  1003. local width = (a + (b-a).unit*len1 - c).magnitude
  1004.  
  1005. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1006.  
  1007. local list = {}
  1008.  
  1009. if len1 > 0.01 then
  1010. local w1 = Instance.new('WedgePart', m)
  1011. game:GetService("Debris"):AddItem(w1,5)
  1012. w1.Material = "SmoothPlastic"
  1013. w1.FormFactor = 'Custom'
  1014. w1.BrickColor = BrickColor.new("Really red")
  1015. w1.Transparency = 0
  1016. w1.Reflectance = 0
  1017. w1.Material = "SmoothPlastic"
  1018. w1.CanCollide = false
  1019. local l1 = Instance.new("PointLight",w1)
  1020. l1.Color = Color3.new(170,0,0)
  1021. NoOutline(w1)
  1022. local sz = Vector3.new(0.2, width, len1)
  1023. w1.Size = sz
  1024. local sp = Instance.new("SpecialMesh",w1)
  1025. sp.MeshType = "Wedge"
  1026. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1027. w1:BreakJoints()
  1028. w1.Anchored = true
  1029. w1.Parent = workspace
  1030. w1.Transparency = 0.7
  1031. table.insert(Effects,{w1,"Disappear",.01})
  1032. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1033. table.insert(list,w1)
  1034. end
  1035.  
  1036. if len2 > 0.01 then
  1037. local w2 = Instance.new('WedgePart', m)
  1038. game:GetService("Debris"):AddItem(w2,5)
  1039. w2.Material = "SmoothPlastic"
  1040. w2.FormFactor = 'Custom'
  1041. w2.BrickColor = BrickColor.new("Really red")
  1042. w2.Transparency = 0
  1043. w2.Reflectance = 0
  1044. w2.Material = "SmoothPlastic"
  1045. w2.CanCollide = false
  1046. local l2 = Instance.new("PointLight",w2)
  1047. l2.Color = Color3.new(170,0,0)
  1048. NoOutline(w2)
  1049. local sz = Vector3.new(0.2, width, len2)
  1050. w2.Size = sz
  1051. local sp = Instance.new("SpecialMesh",w2)
  1052. sp.MeshType = "Wedge"
  1053. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1054. w2:BreakJoints()
  1055. w2.Anchored = true
  1056. w2.Parent = workspace
  1057. w2.Transparency = 0.7
  1058. table.insert(Effects,{w2,"Disappear",.01})
  1059. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1060. table.insert(list,w2)
  1061. end
  1062. return unpack(list)
  1063. end
  1064.  
  1065.  
  1066. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1067. if hit.Parent == nil then
  1068. return
  1069. end
  1070. local h = hit.Parent:FindFirstChild("Humanoid")
  1071. for _, v in pairs(hit.Parent:children()) do
  1072. if v:IsA("Humanoid") then
  1073. h = v
  1074. end
  1075. end
  1076. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1077. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1078. return
  1079. end
  1080. local c = Create("ObjectValue")({
  1081. Name = "creator",
  1082. Value = game:service("Players").LocalPlayer,
  1083. Parent = h
  1084. })
  1085. game:GetService("Debris"):AddItem(c, 0.5)
  1086. if HitSound ~= nil and HitPitch ~= nil then
  1087. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1088. end
  1089. local Damage = math.huge
  1090. local blocked = false
  1091. local block = hit.Parent:findFirstChild("Block")
  1092. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1093. blocked = true
  1094. block.Value = block.Value - 1
  1095. print(block.Value)
  1096. end
  1097. if blocked == false then
  1098. HitHealth = h.Health
  1099. h.Health = h.Health - Damage
  1100. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1101. print("gained kill")
  1102. end
  1103. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1104. else
  1105. h.Health = h.Health - Damage / 2
  1106. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1107. end
  1108. if Type == "Knockdown" then
  1109. local hum = hit.Parent.Humanoid
  1110. hum.PlatformStand = true
  1111. coroutine.resume(coroutine.create(function(HHumanoid)
  1112. swait(1)
  1113. HHumanoid.PlatformStand = false
  1114. end), hum)
  1115. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1116. local bodvol = Create("BodyVelocity")({
  1117. velocity = angle * knockback,
  1118. P = 5000,
  1119. maxForce = Vector3.new(8000, 8000, 8000),
  1120. Parent = hit
  1121. })
  1122. local rl = Create("BodyAngularVelocity")({
  1123. P = 3000,
  1124. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1125. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1126. Parent = hit
  1127. })
  1128. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1129. game:GetService("Debris"):AddItem(rl, 0.5)
  1130. elseif Type == "Normal" then
  1131. local vp = Create("BodyVelocity")({
  1132. P = 500,
  1133. maxForce = Vector3.new(math.huge, 0, math.huge),
  1134. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1135. })
  1136. if knockback > 0 then
  1137. vp.Parent = hit.Parent.Torso
  1138. end
  1139. game:GetService("Debris"):AddItem(vp, 0.5)
  1140. elseif Type == "Up" then
  1141. local bodyVelocity = Create("BodyVelocity")({
  1142. velocity = Vector3.new(0, 20, 0),
  1143. P = 5000,
  1144. maxForce = Vector3.new(8000, 8000, 8000),
  1145. Parent = hit
  1146. })
  1147. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1148. local bodyVelocity = Create("BodyVelocity")({
  1149. velocity = Vector3.new(0, 20, 0),
  1150. P = 5000,
  1151. maxForce = Vector3.new(8000, 8000, 8000),
  1152. Parent = hit
  1153. })
  1154. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1155. elseif Type == "Leech" then
  1156. local hum = hit.Parent.Humanoid
  1157. if hum ~= nil then
  1158. for i = 0, 2 do
  1159. 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)
  1160. end
  1161. Humanoid.Health = Humanoid.Health + 10
  1162. end
  1163. elseif Type == "UpKnock" then
  1164. local hum = hit.Parent.Humanoid
  1165. hum.PlatformStand = true
  1166. if hum ~= nil then
  1167. hitr = true
  1168. end
  1169. coroutine.resume(coroutine.create(function(HHumanoid)
  1170. swait(5)
  1171. HHumanoid.PlatformStand = false
  1172. hitr = false
  1173. end), hum)
  1174. local bodyVelocity = Create("BodyVelocity")({
  1175. velocity = Vector3.new(0, 20, 0),
  1176. P = 5000,
  1177. maxForce = Vector3.new(8000, 8000, 8000),
  1178. Parent = hit
  1179. })
  1180. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1181. local bodyVelocity = Create("BodyVelocity")({
  1182. velocity = Vector3.new(0, 20, 0),
  1183. P = 5000,
  1184. maxForce = Vector3.new(8000, 8000, 8000),
  1185. Parent = hit
  1186. })
  1187. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1188. elseif Type == "Snare" then
  1189. local bp = Create("BodyPosition")({
  1190. P = 2000,
  1191. D = 100,
  1192. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1193. position = hit.Parent.Torso.Position,
  1194. Parent = hit.Parent.Torso
  1195. })
  1196. game:GetService("Debris"):AddItem(bp, 1)
  1197. elseif Type == "Slashnare" then
  1198. 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)
  1199. for i = 1, math.random(4, 5) do
  1200. 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)
  1201. end
  1202. local bp = Create("BodyPosition")({
  1203. P = 2000,
  1204. D = 100,
  1205. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1206. position = hit.Parent.Torso.Position,
  1207. Parent = hit.Parent.Torso
  1208. })
  1209. game:GetService("Debris"):AddItem(bp, 1)
  1210. elseif Type == "Spike" then
  1211. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1212. local bp = Create("BodyPosition")({
  1213. P = 2000,
  1214. D = 100,
  1215. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1216. position = hit.Parent.Torso.Position,
  1217. Parent = hit.Parent.Torso
  1218. })
  1219. game:GetService("Debris"):AddItem(bp, 1)
  1220. elseif Type == "Freeze" then
  1221. local BodPos = Create("BodyPosition")({
  1222. P = 50000,
  1223. D = 1000,
  1224. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1225. position = hit.Parent.Torso.Position,
  1226. Parent = hit.Parent.Torso
  1227. })
  1228. local BodGy = Create("BodyGyro")({
  1229. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1230. P = 20000,
  1231. Parent = hit.Parent.Torso,
  1232. cframe = hit.Parent.Torso.CFrame
  1233. })
  1234. hit.Parent.Torso.Anchored = true
  1235. coroutine.resume(coroutine.create(function(Part)
  1236. swait(1.5)
  1237. Part.Anchored = false
  1238. end), hit.Parent.Torso)
  1239. game:GetService("Debris"):AddItem(BodPos, 3)
  1240. game:GetService("Debris"):AddItem(BodGy, 3)
  1241. end
  1242. local debounce = Create("BoolValue")({
  1243. Name = "DebounceHit",
  1244. Parent = hit.Parent,
  1245. Value = true
  1246. })
  1247. game:GetService("Debris"):AddItem(debounce, Delay)
  1248. c = Instance.new("ObjectValue")
  1249. c.Name = "creator"
  1250. c.Value = Player
  1251. c.Parent = h
  1252. game:GetService("Debris"):AddItem(c, 0.5)
  1253. end
  1254. end
  1255. function ShowDamage(Pos, Text, Time, Color)
  1256. local Rate = 0.03333333333333333
  1257. local Pos = Pos or Vector3.new(0, 0, 0)
  1258. local Text = Text or ""
  1259. local Time = Time or 2
  1260. local Color = Color or Color3.new(1, 0, 1)
  1261. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1262. EffectPart.Anchored = true
  1263. local BillboardGui = Create("BillboardGui")({
  1264. Size = UDim2.new(3, 0, 3, 0),
  1265. Adornee = EffectPart,
  1266. Parent = EffectPart
  1267. })
  1268. local TextLabel = Create("TextLabel")({
  1269. BackgroundTransparency = 1,
  1270. Size = UDim2.new(1, 0, 1, 0),
  1271. Text = Text,
  1272. TextColor3 = Color,
  1273. TextScaled = true,
  1274. Font = Enum.Font.ArialBold,
  1275. Parent = BillboardGui
  1276. })
  1277. game.Debris:AddItem(EffectPart, Time + 0.1)
  1278. EffectPart.Parent = game:GetService("Workspace")
  1279. delay(0, function()
  1280. local Frames = Time / Rate
  1281. for Frame = 1, Frames do
  1282. wait(Rate)
  1283. local Percent = Frame / Frames
  1284. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1285. TextLabel.TextTransparency = Percent
  1286. end
  1287. if EffectPart and EffectPart.Parent then
  1288. EffectPart:Destroy()
  1289. end
  1290. end)
  1291. end
  1292. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1293. for _, c in pairs(workspace:children()) do
  1294. local hum = c:findFirstChild("Humanoid")
  1295. if hum ~= nil then
  1296. local head = c:findFirstChild("Torso")
  1297. if head ~= nil then
  1298. local targ = head.Position - Part.Position
  1299. local mag = targ.magnitude
  1300. if magni >= mag and c.Name ~= Player.Name then
  1301. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1302. end
  1303. end
  1304. end
  1305. end
  1306. end
  1307.  
  1308. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1309. for _, c in pairs(workspace:children()) do
  1310. local hum = c:findFirstChild("Humanoid")
  1311. if hum ~= nil then
  1312. local head = c:findFirstChild("Torso")
  1313. if head ~= nil then
  1314. local targ = head.Position - Part.Position
  1315. local mag = targ.magnitude
  1316. if magni >= mag and c.Name ~= Player.Name then
  1317. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1318. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1319. end
  1320. end
  1321. end
  1322. end
  1323. end
  1324.  
  1325. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1326. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1327. end
  1328.  
  1329. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1330. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1331. prt.Anchored=true
  1332. prt.CFrame=cframe
  1333. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1334. --http://www.roblox.com/asset/?id=4770560
  1335. game:GetService("Debris"):AddItem(prt,2)
  1336. CF=prt.CFrame
  1337. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1338. for i=0,1,0.2 do
  1339. wait()
  1340. Part.CFrame=CF*cf(0,0,-0.4)
  1341. end
  1342. for i=0,1,delay do
  1343. wait()
  1344. --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)
  1345. Mesh.Scale=Mesh.Scale
  1346. end
  1347. for i=0,1,0.1 do
  1348. wait()
  1349. Part.Transparency=i
  1350. end
  1351. Part.Parent=nil
  1352. end),prt,msh,CF)
  1353. end
  1354.  
  1355. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1356. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1357. prt.Anchored=true
  1358. prt.Material = "Neon"
  1359. prt.CFrame=cframe
  1360. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1361. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1362. game:GetService("Debris"):AddItem(prt,5)
  1363. coroutine.resume(coroutine.create(function(Part,Mesh)
  1364. for i=0,1,delay do
  1365. swait()
  1366. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1367. Part.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 MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1375. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1376. prt.Anchored=true
  1377. prt.Material = "Neon"
  1378. prt.CFrame=cframe
  1379. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1380. game:GetService("Debris"):AddItem(prt,5)
  1381. coroutine.resume(coroutine.create(function(Part,Mesh)
  1382. local rtype = rottype
  1383. for i=0,1,delay do
  1384. swait()
  1385. if rtype == 1 then
  1386. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1387. elseif rtype == 2 then
  1388. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1389. end
  1390. Part.Transparency=i
  1391. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1392. end
  1393. Part.Parent=nil
  1394. end),prt,msh)
  1395. end
  1396.  
  1397. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1398. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1399. prt.Anchored=true
  1400. prt.CFrame=cframe
  1401. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1402. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1403. game:GetService("Debris"):AddItem(prt,5)
  1404. coroutine.resume(coroutine.create(function(Part,Mesh)
  1405. for i=0,1,delay do
  1406. wait()
  1407. Part.Transparency=i
  1408. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1409. end
  1410. Part.Parent=nil
  1411. end),prt,msh)
  1412. end
  1413.  
  1414. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1415. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1416. prt.Anchored=true
  1417. prt.Material = "Neon"
  1418. prt.CFrame=cframe
  1419. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1420. game:GetService("Debris"):AddItem(prt,5)
  1421. coroutine.resume(coroutine.create(function(Part,Mesh)
  1422. local rtype = rottype
  1423. for i=0,1,delay do
  1424. swait()
  1425. if rtype == 1 then
  1426. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1427. elseif rtype == 2 then
  1428. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1429. end
  1430. Part.Transparency=i
  1431. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1432. end
  1433. Part.Parent=nil
  1434. end),prt,msh)
  1435. end
  1436.  
  1437. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1438. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1439. prt.Anchored=true
  1440. prt.Material = "Neon"
  1441. prt.CFrame=cframe
  1442. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1443. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1444. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1445. game:GetService("Debris"):AddItem(prt,5)
  1446. coroutine.resume(coroutine.create(function(Part,Mesh)
  1447. local rtype = rottype
  1448. for i=0,1,delay do
  1449. swait()
  1450. if rtype == 1 then
  1451. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1452. elseif rtype == 2 then
  1453. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1454. end
  1455. dec.Transparency=i
  1456. dec2.Transparency=i
  1457. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1458. end
  1459. Part.Parent=nil
  1460. end),prt,msh)
  1461. end
  1462.  
  1463. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1464. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1465. prt.Anchored=true
  1466. prt.Material = "Neon"
  1467. prt.CFrame=cframe
  1468. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1469. game:GetService("Debris"):AddItem(prt,5)
  1470. coroutine.resume(coroutine.create(function(Part,Mesh)
  1471. local rtype = rottype
  1472. for i=0,1,delay do
  1473. swait()
  1474. if rtype == 1 then
  1475. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1476. elseif rtype == 2 then
  1477. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1478. end
  1479. prt.Transparency=i
  1480. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1481. end
  1482. Part.Parent=nil
  1483. end),prt,msh)
  1484. end
  1485.  
  1486. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1487. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1488. prt.Anchored=true
  1489. prt.Material = "Neon"
  1490. prt.CFrame=cframe
  1491. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1492. game:GetService("Debris"):AddItem(prt,5)
  1493. coroutine.resume(coroutine.create(function(Part,Mesh)
  1494. local rtype = rottype
  1495. for i=0,1,delay do
  1496. swait()
  1497. if rtype == 1 then
  1498. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1499. elseif rtype == 2 then
  1500. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1501. end
  1502. prt.Transparency=i
  1503. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1504. end
  1505. Part.Parent=nil
  1506. end),prt,msh)
  1507. end
  1508.  
  1509. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1510. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1511. prt.Anchored=true
  1512. prt.Material = "Neon"
  1513. prt.CFrame=cframe
  1514. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1515. game:GetService("Debris"):AddItem(prt,5)
  1516. coroutine.resume(coroutine.create(function(Part,Mesh)
  1517. local rtype = rottype
  1518. for i=0,1,delay do
  1519. swait()
  1520. if rtype == 1 then
  1521. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1522. elseif rtype == 2 then
  1523. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1524. end
  1525. prt.Transparency=i
  1526. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1527. end
  1528. Part.Parent=nil
  1529. end),prt,msh)
  1530. end
  1531.  
  1532. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1533. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1534. prt.Anchored=true
  1535. prt.Material = "Neon"
  1536. prt.CFrame=cframe
  1537. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1538. game:GetService("Debris"):AddItem(prt,5)
  1539. coroutine.resume(coroutine.create(function(Part,Mesh)
  1540. local rtype = rottype
  1541. for i=0,1,delay do
  1542. swait()
  1543. if rtype == 1 then
  1544. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1545. elseif rtype == 2 then
  1546. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1547. end
  1548. prt.Transparency=i
  1549. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1550. end
  1551. Part.Parent=nil
  1552. end),prt,msh)
  1553. end
  1554.  
  1555. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1556. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1557. prt.Anchored=false
  1558. prt.CFrame=cframe
  1559. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1560. local wld=weld(prt,prt,Parent,cframe)
  1561. game:GetService("Debris"):AddItem(prt,5)
  1562. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1563. for i=0,1,delay do
  1564. wait()
  1565. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1566. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1567. Part.Transparency=i
  1568. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1569. end
  1570. Part.Parent=nil
  1571. end),prt,msh,wld)
  1572. end
  1573.  
  1574. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1575. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1576. prt.Anchored=false
  1577. prt.CFrame=cframe
  1578. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1579. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1580. game:GetService("Debris"):AddItem(prt,5)
  1581. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1582. for i=0,1,delay do
  1583. wait()
  1584. Weld.C0=euler(i*20,0,0)
  1585. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1586. Part.Transparency=i
  1587. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1588. end
  1589. Part.Parent=nil
  1590. end),prt,msh,wld)
  1591. end
  1592.  
  1593. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1594. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1595. prt.Anchored=true
  1596. prt.CFrame=cframe
  1597. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1598. game:GetService("Debris"):AddItem(prt,2)
  1599. coroutine.resume(coroutine.create(function(Part,Mesh)
  1600. for i=0,1,delay do
  1601. wait()
  1602. Part.CFrame=Part.CFrame
  1603. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1604. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1605. prt2.Anchored=true
  1606. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1607. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1608. game:GetService("Debris"):AddItem(prt2,2)
  1609. coroutine.resume(coroutine.create(function(Part,Mesh)
  1610. for i=0,1,0.1 do
  1611. wait()
  1612. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1613. end
  1614. Part.Parent=nil
  1615. end),prt2,msh2)
  1616. end
  1617. for i=0,1,delay*2 do
  1618. wait()
  1619. Part.CFrame=Part.CFrame
  1620. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1621. end
  1622. Part.Parent=nil
  1623. end),prt,msh)
  1624. end
  1625.  
  1626. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1627. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1628. prt.Anchored=true
  1629. prt.CFrame=cframe
  1630. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1631. game:GetService("Debris"):AddItem(prt,2)
  1632. coroutine.resume(coroutine.create(function(Part,Mesh)
  1633. for i=0,1,delay do
  1634. wait()
  1635. Part.CFrame=Part.CFrame
  1636. Part.Transparency=i
  1637. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1638. end
  1639. Part.Parent=nil
  1640. end),prt,msh)
  1641. end
  1642.  
  1643. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1644. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1645. prt.Anchored=true
  1646. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1647. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1648. game:GetService("Debris"):AddItem(prt,2)
  1649. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1650. CF=Part.CFrame
  1651. Numbb=0
  1652. randnumb=math.random()/10
  1653. rand1=math.random()/10
  1654. for i=0,1,rand1 do
  1655. wait()
  1656. CF=CF*cf(0,math.random()/2,0)
  1657. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1658. Part.CFrame=CF*euler(Numbb,0,0)
  1659. Part.Transparency=i
  1660. Numbb=Numbb+randnumb
  1661. end
  1662. Part.Parent=nil
  1663. end),prt,CF,Numbb,randnumb)
  1664. end
  1665.  
  1666. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1667. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1668. prt.Anchored=true
  1669. prt.CFrame=cframe
  1670. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1671. game:GetService("Debris"):AddItem(prt,5)
  1672. coroutine.resume(coroutine.create(function(Part,Mesh)
  1673. for i=0,1,delay do
  1674. wait()
  1675. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1676. Part.Transparency=i
  1677. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1678. end
  1679. Part.Parent=nil
  1680. end),prt,msh)
  1681. end
  1682.  
  1683. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1684. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1685. prt.Anchored=true
  1686. prt.CFrame=cframe
  1687. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1688. game:GetService("Debris"):AddItem(prt,2)
  1689. coroutine.resume(coroutine.create(function(Part,Mesh)
  1690. for i=0,1,delay do
  1691. wait()
  1692. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1693. Part.Transparency=i
  1694. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1695. end
  1696. Part.Parent=nil
  1697. end),prt,msh)
  1698. end
  1699.  
  1700. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1701. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1702. prt.Anchored=true
  1703. prt.CFrame=cframe*cf(x,y,z)
  1704. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1705. game:GetService("Debris"):AddItem(prt,5)
  1706. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1707. local num=math.random()
  1708. local num2=math.random(-3,2)+math.random()
  1709. local numm=0
  1710. for i=0,1,delay*2 do
  1711. swait()
  1712. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1713. Part.Transparency=i
  1714. numm=numm+0.01
  1715. end
  1716. Part.Parent=nil
  1717. Mesh.Parent=nil
  1718. end),prt,msh,x,y,z)
  1719. end
  1720.  
  1721. function dmgstart(dmg,what)
  1722. hitcon = what.Touched:connect(function(hit)
  1723. local hum = hit.Parent:FindFirstChild("Humanoid")
  1724. if hum and not hum:IsDescendantOf(Character) then
  1725. hum:TakeDamage(dmg)
  1726. end
  1727. end)
  1728. end
  1729.  
  1730. function dmgstop()
  1731. hitcon:disconnect()
  1732. end
  1733.  
  1734. function Cloak()
  1735. Face.Parent=nil
  1736. cloaked=true
  1737. for _,v in pairs(Torso.Parent:children()) do
  1738. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1739. coroutine.resume(coroutine.create(function()
  1740. for i=0,1,0.2 do
  1741. wait()
  1742. v.Transparency=i
  1743. end
  1744. v.Transparency=1
  1745. end))
  1746. end
  1747. if v.className=="Hat" then
  1748. hatp=v.Handle
  1749. coroutine.resume(coroutine.create(function(derp)
  1750. for i=0,1,0.2 do
  1751. wait()
  1752. derp.Transparency=i
  1753. end
  1754. derp.Transparency=1
  1755. end),hatp)
  1756. end
  1757. end
  1758. for _,v in pairs(m:children()) do
  1759. if v.className=="Part" then
  1760. coroutine.resume(coroutine.create(function()
  1761. for i=0,1,0.2 do
  1762. wait()
  1763. v.Transparency=i
  1764. end
  1765. v.Transparency=1
  1766. end))
  1767. end
  1768. end
  1769. end
  1770.  
  1771. function UnCloak()
  1772. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1773. Face.Parent=Head
  1774. cloaked=false
  1775. for _,v in pairs(Torso.Parent:children()) do
  1776. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1777. coroutine.resume(coroutine.create(function()
  1778. for i=0,1,0.1 do
  1779. wait()
  1780. v.Transparency=v.Transparency-0.1
  1781. end
  1782. v.Transparency=0
  1783. end))
  1784. end
  1785. if v.className=="Hat" then
  1786. hatp=v.Handle
  1787. coroutine.resume(coroutine.create(function(derp)
  1788. for i=0,1,0.1 do
  1789. wait()
  1790. derp.Transparency=derp.Transparency-0.1
  1791. end
  1792. derp.Transparency=0
  1793. end),hatp)
  1794. end
  1795. end
  1796. for _,v in pairs(m:children()) do
  1797. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1798. coroutine.resume(coroutine.create(function()
  1799. for i=0,1,0.1 do
  1800. wait()
  1801. v.Transparency=v.Transparency-0.1
  1802. end
  1803. v.Transparency=0
  1804. end))
  1805. v.Transparency=0
  1806. end
  1807. end
  1808. end
  1809.  
  1810. local origcolor = BrickColor.new("Toothpaste")
  1811. ---- This section of explosions.
  1812. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1813. local expart = Instance.new("Part",char)
  1814. local expart2 = Instance.new("Part",char)
  1815. local rin = Instance.new("Part",char)
  1816. local rin2 = Instance.new("Part",char)
  1817. local partMesh = Instance.new("SpecialMesh",expart)
  1818. partMesh.MeshType = "Sphere"
  1819. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1820. partMesh2.MeshType = "Sphere"
  1821. local partMesh3 = Instance.new("SpecialMesh",rin)
  1822. partMesh3.MeshType = "Brick"
  1823. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1824. partMesh4.MeshType = "Brick"
  1825. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1826. partMesh.Scale = vt(rad,rad,rad)
  1827. expart.Size = vt(1,1,1)
  1828. expart.Transparency = 0
  1829. expart.Anchored = true
  1830. expart.Material = "Neon"
  1831. expart.BrickColor = bc("White")
  1832. expart.CFrame = par.CFrame
  1833. partMesh2.Scale = vt(rad,rad,rad)
  1834. expart2.Size = vt(1.15,1.15,1.15)
  1835. expart2.Transparency = 0.5
  1836. expart2.Anchored = true
  1837. expart2.Material = "Neon"
  1838. expart2.BrickColor = par.BrickColor
  1839. expart2.CFrame = par.CFrame
  1840. rin.Size = vt(1.15,1.15,1.15)
  1841. rin.Transparency = 1
  1842. rin.Anchored = true
  1843. rin.Material = "Neon"
  1844. rin.BrickColor = par.BrickColor
  1845. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1846. rin2.Size = vt(1.15,1.15,1.15)
  1847. rin2.Transparency = 1
  1848. rin2.Anchored = true
  1849. rin2.Material = "Neon"
  1850. rin2.BrickColor = par.BrickColor
  1851. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1852. partMesh3.Scale = vt(0,1,0)
  1853. partMesh4.Scale = vt(0,1,0)
  1854. local dec2 = Instance.new("Decal", rin)
  1855. dec2.Face = "Top"
  1856. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1857. dec2.Parent = rin
  1858. local dec2b = dec2:Clone()
  1859. dec2b.Face = "Bottom"
  1860. dec2b.Parent = rin
  1861.  
  1862. local dec2a = Instance.new("Decal", rin2)
  1863. dec2a.Face = "Top"
  1864. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1865. dec2a.Parent = rin2
  1866. local dec2ab = dec2a:Clone()
  1867. dec2ab.Face = "Bottom"
  1868. dec2ab.Parent = rin2
  1869. expart.CanCollide = false
  1870. expart2.CanCollide = false
  1871. rin.CanCollide = false
  1872. rin2.CanCollide = false
  1873. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1874. local value = 1*rad/6.5
  1875. for i = 0, 199 do
  1876. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1877. expart.CFrame = expart.CFrame
  1878. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1879. expart2.CFrame = expart.CFrame
  1880. value = value - 0.035*rad/30
  1881. if value < 7.5 then
  1882. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1883. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1884. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1885. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1886. end
  1887. if value < 0 then
  1888. dec2.Transparency = dec2.Transparency + 0.025
  1889. dec2a.Transparency = dec2a.Transparency + 0.025
  1890. dec2b.Transparency = dec2b.Transparency + 0.025
  1891. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1892. expart.Transparency = expart.Transparency + 0.025
  1893. expart2.Transparency = expart2.Transparency + 0.025
  1894. rin.Transparency = rin.Transparency + 0.025
  1895. rin2.Transparency = rin2.Transparency + 0.025
  1896. end
  1897. swait()
  1898. end
  1899. game:GetService("Debris"):AddItem(expart, 1)
  1900. game:GetService("Debris"):AddItem(expart2, 1)
  1901. game:GetService("Debris"):AddItem(rin, 1)
  1902. game:GetService("Debris"):AddItem(rin2, 1)
  1903. end
  1904.  
  1905. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1906. local expart = Instance.new("Part",char)
  1907. local expart2 = Instance.new("Part",char)
  1908. local partMesh = Instance.new("SpecialMesh",expart)
  1909. partMesh.MeshType = "Sphere"
  1910. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1911. partMesh2.MeshType = "Sphere"
  1912. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1913. partMesh.Scale = vt(rad,rad,rad)
  1914. expart.Size = vt(1,1,1)
  1915. expart.Transparency = 0
  1916. expart.Anchored = true
  1917. expart.Material = "Neon"
  1918. expart.BrickColor = bc("White")
  1919. expart.CFrame = par.CFrame
  1920. partMesh2.Scale = vt(rad,rad,rad)
  1921. expart2.Size = vt(1.15,1.15,1.15)
  1922. expart2.Transparency = 0.5
  1923. expart2.Anchored = true
  1924. expart2.Material = "Neon"
  1925. expart2.BrickColor = par.BrickColor
  1926. expart2.CFrame = par.CFrame
  1927. expart.CanCollide = false
  1928. expart2.CanCollide = false
  1929. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1930. local value = 1*rad/6.5
  1931. for i = 0, 75 do
  1932. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1933. expart.CFrame = expart.CFrame
  1934. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1935. expart2.CFrame = expart.CFrame
  1936. value = value - 0.035*rad/5
  1937. if value < 0 then
  1938. value = 0
  1939. expart.Transparency = expart.Transparency + 0.05
  1940. expart2.Transparency = expart2.Transparency + 0.05
  1941. end
  1942. swait()
  1943. end
  1944. game:GetService("Debris"):AddItem(expart, 1)
  1945. game:GetService("Debris"):AddItem(expart2, 1)
  1946. end
  1947.  
  1948. function AreaDanger(rad,par,mindam,maxdam)
  1949. local expart = Instance.new("Part",char)
  1950. local partMesh = Instance.new("SpecialMesh",expart)
  1951. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1952. partMesh.MeshType = "Sphere"
  1953. partMesh.Scale = vt(rad,rad,rad)
  1954. expart.Size = vt(1,1,1)
  1955. expart.Transparency = 0.5
  1956. expart.Anchored = true
  1957. expart.Material = "Neon"
  1958. expart.CanCollide = false
  1959. expart.BrickColor = par.BrickColor
  1960. expart.CFrame = par.CFrame
  1961. local value = 1*rad/5
  1962. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1963. for i = 0, 14 do
  1964. wait()
  1965. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1966. expart.CFrame = expart.CFrame
  1967. value = value - 0.035*rad
  1968. if value < 0 then
  1969. value = 0
  1970. end
  1971. end
  1972. wait(0.25)
  1973. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1974. wait(0.5)
  1975. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1976. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1977. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1978. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1979. for i = 0, 14 do
  1980. wait()
  1981. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1982. expart.CFrame = expart.CFrame
  1983. value = value - 0.035*rad/2
  1984. end
  1985. expart.Transparency = 1
  1986. game:GetService("Debris"):AddItem(expart, 5)
  1987. end
  1988.  
  1989. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1990. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1991. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1992. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1993. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1994. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1995. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1996. for i = 0, 24 do
  1997. 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))
  1998. end
  1999. for i = 0, 24 do
  2000. local expart = Instance.new("Part",char)
  2001. expart.Transparency = 1
  2002. expart.Anchored = true
  2003. expart.CanCollide = false
  2004. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2005. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2006. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2007. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2008. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2009. for i = 0, 9 do
  2010. 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))
  2011. end
  2012. game:GetService("Debris"):AddItem(expart, 2)
  2013. wait(0.1)
  2014. end
  2015. end
  2016.  
  2017. function EXterPlosion(par)
  2018. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2019. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2020. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2021. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2022. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2023. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2024. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2025. for i = 0, 24 do
  2026. 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))
  2027. end
  2028. for i = 0, 24 do
  2029. 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))
  2030. end
  2031. end
  2032. ----
  2033.  
  2034.  
  2035. function ring(type,pos,scale,value)
  2036. local type = type
  2037. local rng = Instance.new("Part", char)
  2038. rng.Anchored = true
  2039. rng.BrickColor = origcolor
  2040. rng.CanCollide = false
  2041. rng.FormFactor = 3
  2042. rng.Name = "Ring"
  2043. rng.Size = Vector3.new(1, 1, 1)
  2044. rng.Transparency = 0
  2045. rng.TopSurface = 0
  2046. rng.BottomSurface = 0
  2047. rng.CFrame = pos
  2048. local rngm = Instance.new("SpecialMesh", rng)
  2049. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2050. rngm.Scale = scale
  2051. local scaler2 = 1
  2052. if type == "Add" then
  2053. scaler2 = 1*value
  2054. elseif type == "Divide" then
  2055. scaler2 = 1/value
  2056. end
  2057. coroutine.resume(coroutine.create(function()
  2058. for i = 0,10,0.1 do
  2059. swait()
  2060. if type == "Add" then
  2061. scaler2 = scaler2 - 0.01*value
  2062. elseif type == "Divide" then
  2063. scaler2 = scaler2 - 0.01/value
  2064. end
  2065. rng.Transparency = rng.Transparency + 0.01
  2066. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2067. end
  2068. rng:Destroy()
  2069. end))
  2070. end
  2071.  
  2072. function ring2(type,pos,scale,value,color)
  2073. local type = type
  2074. local rng = Instance.new("Part", char)
  2075. rng.Anchored = true
  2076. rng.BrickColor = color
  2077. rng.CanCollide = false
  2078. rng.FormFactor = 3
  2079. rng.Name = "Ring"
  2080. rng.Size = Vector3.new(1, 1, 1)
  2081. rng.Transparency = 0
  2082. rng.TopSurface = 0
  2083. rng.BottomSurface = 0
  2084. rng.CFrame = pos
  2085. local rngm = Instance.new("SpecialMesh", rng)
  2086. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2087. rngm.Scale = scale
  2088. local scaler2 = 1
  2089. if type == "Add" then
  2090. scaler2 = 1*value
  2091. elseif type == "Divide" then
  2092. scaler2 = 1/value
  2093. end
  2094. coroutine.resume(coroutine.create(function()
  2095. for i = 0,10,0.1 do
  2096. swait()
  2097. if type == "Add" then
  2098. scaler2 = scaler2 - 0.01*value
  2099. elseif type == "Divide" then
  2100. scaler2 = scaler2 - 0.01/value
  2101. end
  2102. rng.Transparency = rng.Transparency + 0.01
  2103. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2104. end
  2105. rng:Destroy()
  2106. end))
  2107. end
  2108.  
  2109.  
  2110. function wave(type,pos,scale,value)
  2111. local type = type
  2112. local rng = Instance.new("Part", char)
  2113. rng.Anchored = true
  2114. rng.BrickColor = origcolor
  2115. rng.CanCollide = false
  2116. rng.FormFactor = 3
  2117. rng.Name = "Ring"
  2118. rng.Size = Vector3.new(1, 1, 1)
  2119. rng.Transparency = 0
  2120. rng.TopSurface = 0
  2121. rng.BottomSurface = 0
  2122. rng.CFrame = pos
  2123. local rngm = Instance.new("SpecialMesh", rng)
  2124. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2125. rngm.Scale = scale
  2126. local scaler2 = 1
  2127. if type == "Add" then
  2128. scaler2 = 1*value
  2129. elseif type == "Divide" then
  2130. scaler2 = 1/value
  2131. end
  2132. coroutine.resume(coroutine.create(function()
  2133. for i = 0,10,0.1 do
  2134. swait()
  2135. if type == "Add" then
  2136. scaler2 = scaler2 - 0.01*value
  2137. elseif type == "Divide" then
  2138. scaler2 = scaler2 - 0.01/value
  2139. end
  2140. rng.Transparency = rng.Transparency + 0.01
  2141. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2142. end
  2143. rng:Destroy()
  2144. end))
  2145. end
  2146.  
  2147. function wave2(type,pos,scale,value,color)
  2148. local type = type
  2149. local rng = Instance.new("Part", char)
  2150. rng.Anchored = true
  2151. rng.BrickColor = color
  2152. rng.CanCollide = false
  2153. rng.FormFactor = 3
  2154. rng.Name = "Ring"
  2155. rng.Size = Vector3.new(1, 1, 1)
  2156. rng.Transparency = 0
  2157. rng.TopSurface = 0
  2158. rng.BottomSurface = 0
  2159. rng.CFrame = pos
  2160. local rngm = Instance.new("SpecialMesh", rng)
  2161. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2162. rngm.Scale = scale
  2163. local scaler2 = 1
  2164. if type == "Add" then
  2165. scaler2 = 1*value
  2166. elseif type == "Divide" then
  2167. scaler2 = 1/value
  2168. end
  2169. coroutine.resume(coroutine.create(function()
  2170. for i = 0,10,0.1 do
  2171. swait()
  2172. if type == "Add" then
  2173. scaler2 = scaler2 - 0.01*value
  2174. elseif type == "Divide" then
  2175. scaler2 = scaler2 - 0.01/value
  2176. end
  2177. rng.Transparency = rng.Transparency + 0.01
  2178. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2179. end
  2180. rng:Destroy()
  2181. end))
  2182. end
  2183.  
  2184.  
  2185. function wind(type,pos,scale,value,speed)
  2186. local type = type
  2187. local rng = Instance.new("Part", char)
  2188. rng.Anchored = true
  2189. rng.BrickColor = origcolor
  2190. rng.CanCollide = false
  2191. rng.FormFactor = 3
  2192. rng.Name = "Ring"
  2193. rng.Size = Vector3.new(1, 1, 1)
  2194. rng.Transparency = 0
  2195. rng.TopSurface = 0
  2196. rng.BottomSurface = 0
  2197. rng.CFrame = pos
  2198. local rngm = Instance.new("SpecialMesh", rng)
  2199. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2200. rngm.Scale = scale
  2201. local scaler2 = 1
  2202. if type == "Add" then
  2203. scaler2 = 1*value
  2204. elseif type == "Divide" then
  2205. scaler2 = 1/value
  2206. end
  2207. coroutine.resume(coroutine.create(function()
  2208. for i = 0,10,0.1 do
  2209. swait()
  2210. if type == "Add" then
  2211. scaler2 = scaler2 - 0.01*value
  2212. elseif type == "Divide" then
  2213. scaler2 = scaler2 - 0.01/value
  2214. end
  2215. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2216. rng.Transparency = rng.Transparency + 0.01
  2217. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2218. end
  2219. rng:Destroy()
  2220. end))
  2221. end
  2222.  
  2223. function groundwind(type,pos,scale,value,speed)
  2224. local type = type
  2225. local rng = Instance.new("Part", char)
  2226. rng.Anchored = true
  2227. rng.BrickColor = origcolor
  2228. rng.CanCollide = false
  2229. rng.FormFactor = 3
  2230. rng.Name = "Ring"
  2231. rng.Size = Vector3.new(1, 1, 1)
  2232. rng.Transparency = 0
  2233. rng.TopSurface = 0
  2234. rng.BottomSurface = 0
  2235. rng.CFrame = pos
  2236. local rngm = Instance.new("SpecialMesh", rng)
  2237. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2238. rngm.Scale = scale
  2239. local scaler2 = 1
  2240. if type == "Add" then
  2241. scaler2 = 1*value
  2242. elseif type == "Divide" then
  2243. scaler2 = 1/value
  2244. end
  2245. coroutine.resume(coroutine.create(function()
  2246. for i = 0,10,0.1 do
  2247. swait()
  2248. if type == "Add" then
  2249. scaler2 = scaler2 - 0.01*value
  2250. elseif type == "Divide" then
  2251. scaler2 = scaler2 - 0.01/value
  2252. end
  2253. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2254. rng.Transparency = rng.Transparency + 0.01
  2255. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2256. end
  2257. rng:Destroy()
  2258. end))
  2259. end
  2260.  
  2261. function sphere(type,pos,scale,value)
  2262. local type = type
  2263. local rng = Instance.new("Part", char)
  2264. rng.Anchored = true
  2265. rng.BrickColor = origcolor
  2266. rng.CanCollide = false
  2267. rng.FormFactor = 3
  2268. rng.Name = "Ring"
  2269. rng.Material = "Neon"
  2270. rng.Size = Vector3.new(1, 1, 1)
  2271. rng.Transparency = 0
  2272. rng.TopSurface = 0
  2273. rng.BottomSurface = 0
  2274. rng.CFrame = pos
  2275. local rngm = Instance.new("SpecialMesh", rng)
  2276. rngm.MeshType = "Sphere"
  2277. rngm.Scale = scale
  2278. local scaler2 = 1
  2279. if type == "Add" then
  2280. scaler2 = 1*value
  2281. elseif type == "Divide" then
  2282. scaler2 = 1/value
  2283. end
  2284. coroutine.resume(coroutine.create(function()
  2285. for i = 0,10,0.1 do
  2286. swait()
  2287. if type == "Add" then
  2288. scaler2 = scaler2 - 0.01*value
  2289. elseif type == "Divide" then
  2290. scaler2 = scaler2 - 0.01/value
  2291. end
  2292. rng.Transparency = rng.Transparency + 0.01
  2293. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2294. end
  2295. rng:Destroy()
  2296. end))
  2297. end
  2298.  
  2299. function beam(type,pos,scale,value)
  2300. local type = type
  2301. local rng = Instance.new("Part", char)
  2302. rng.Anchored = true
  2303. rng.BrickColor = origcolor
  2304. rng.CanCollide = false
  2305. rng.FormFactor = 3
  2306. rng.Name = "Ring"
  2307. rng.Material = "Neon"
  2308. rng.Size = Vector3.new(1, 1, 1)
  2309. rng.Transparency = 0
  2310. rng.TopSurface = 0
  2311. rng.BottomSurface = 0
  2312. rng.CFrame = pos
  2313. local rngm = Instance.new("SpecialMesh", rng)
  2314. rngm.MeshType = "Sphere"
  2315. rngm.Scale = scale
  2316. rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
  2317. local scaler2 = 0.5
  2318. if type == "Add" then
  2319. scaler2 = 0.5*value
  2320. elseif type == "Divide" then
  2321. scaler2 = 0.5/value
  2322. end
  2323. coroutine.resume(coroutine.create(function()
  2324. for i = 0,10,0.1 do
  2325. swait()
  2326. if type == "Add" then
  2327. scaler2 = scaler2 - 0.01*value
  2328. elseif type == "Divide" then
  2329. scaler2 = scaler2 - 0.01/value
  2330. end
  2331. rng.Transparency = rng.Transparency + 0.01
  2332. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2333. end
  2334. rng:Destroy()
  2335. end))
  2336. end
  2337. local dashing = false
  2338. local OriginalWalkspeed = hum.WalkSpeed
  2339. local equipped = false
  2340. -- Functions are ready.
  2341. function equipanim()
  2342. attack = true
  2343. for i = 0,2,0.1 do
  2344.  
  2345. swait()
  2346. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2347. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  2348. RW.C0 = clerp(RW.C0, CFrame.new(1.75, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(100)), 0.2)
  2349. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2350. end
  2351. attack = false
  2352. hum.WalkSpeed = 10
  2353. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),1)
  2354. wepweld.Part0 = rarm
  2355. equipped = true
  2356. end
  2357. function unequipanim()
  2358. attack = true
  2359. for i = 0,2,0.1 do
  2360.  
  2361. swait()
  2362. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(220),math.rad(0),math.rad(0)),0.2)
  2363. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2364. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  2365. RW.C0 = clerp(RW.C0, CFrame.new(1.75, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(100)), 0.2)
  2366. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2367. end
  2368. attack = false
  2369. hum.WalkSpeed = OriginalWalkspeed
  2370. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),1)
  2371. wepweld.Part0 = tors
  2372. equipped = false
  2373. end
  2374.  
  2375. ----------- attacks
  2376. function attackone()
  2377. attack = true
  2378. for i = 0,3,0.1 do
  2379.  
  2380. swait()
  2381. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2382. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.1)
  2383. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.1)
  2384. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(100)), 0.1)
  2385. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.1)
  2386. end
  2387. CFuncs["Sound"].Create("rbxassetid://231917961", hitbox, 1, 1)
  2388. local con = hitbox.Touched:connect(function(hit)
  2389. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2390. end)
  2391. for i = 0,3,0.1 do
  2392.  
  2393. swait()
  2394. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2395. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-60)),0.2)
  2396. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(60)),.2)
  2397. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(60)), 0.2)
  2398. LW.C0 = clerp(LW.C0, CFrame.new(-0.25, 0.5, -0.75) * angles(math.rad(40), math.rad(0), math.rad(50)), 0.2)
  2399. end
  2400. con:disconnect()
  2401. attack = false
  2402. end
  2403.  
  2404. function attacktwo()
  2405. attack = true
  2406. for i = 0,3,0.1 do
  2407.  
  2408. swait()
  2409. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(180),math.rad(0),math.rad(0)),0.1)
  2410. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.1)
  2411. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(40)),.1)
  2412. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(70)), 0.1)
  2413. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.1)
  2414. end
  2415. CFuncs["Sound"].Create("rbxassetid://231917950", hitbox, 1, 1)
  2416. local con = hitbox.Touched:connect(function(hit)
  2417. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2418. end)
  2419. for i = 0,3,0.1 do
  2420.  
  2421. swait()
  2422. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(180),math.rad(0),math.rad(0)),0.2)
  2423. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.2)
  2424. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  2425. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.75) * angles(math.rad(0), math.rad(130), math.rad(100)), 0.2)
  2426. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(50)), 0.2)
  2427. end
  2428. con:disconnect()
  2429. attack = false
  2430. end
  2431.  
  2432. function attackthree()
  2433. attack = true
  2434. for i = 0,3,0.1 do
  2435.  
  2436. swait()
  2437. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2438. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-100)),0.1)
  2439. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(100)),.1)
  2440. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(60)), 0.1)
  2441. LW.C0 = clerp(LW.C0, CFrame.new(-0.25, 0.5, -0.75) * angles(math.rad(40), math.rad(0), math.rad(50)), 0.1)
  2442. end
  2443. CFuncs["Sound"].Create("rbxassetid://231917950", hitbox, 1, 1.25)
  2444. local con = hitbox.Touched:connect(function(hit)
  2445. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2446. end)
  2447. for i = 0,3,0.1 do
  2448.  
  2449. swait()
  2450. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.2)
  2451. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.2)
  2452. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-70)),.2)
  2453. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(80), math.rad(110)), 0.2)
  2454. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, -0.75) * angles(math.rad(120), math.rad(0), math.rad(-5)), 0.2)
  2455. end
  2456. con:disconnect()
  2457. attack = false
  2458. end
  2459.  
  2460. function attackfour()
  2461. attack = true
  2462. for i = 0,3,0.1 do
  2463.  
  2464. swait()
  2465. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.5)
  2466. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.1)
  2467. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2468. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(-40)), 0.1)
  2469. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(40)), 0.1)
  2470. end
  2471. for i = 0,1,0.1 do
  2472. swait()
  2473. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2474. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2475. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2476. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  2477. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  2478. end
  2479. local impact = Instance.new("Part")
  2480. impact.Parent = char
  2481. impact.BrickColor = origcolor
  2482. impact.CanCollide = false
  2483. impact.Material = "Neon"
  2484. impact.Anchored = true
  2485. impact.TopSurface = 0
  2486. impact.BottomSurface = 0
  2487. impact.Transparency = 1
  2488. impact.Size = vt(2,2,2)
  2489. impact.Position = bladt.Position
  2490. game:GetService("Debris"):AddItem(impact, 5)
  2491. CFuncs["Sound"].Create("rbxassetid://231917806", impact, 2, 1)
  2492. CFuncs["Sound"].Create("rbxassetid://231917845", impact, 1, 1)
  2493. CFuncs["Sound"].Create("rbxassetid://231917833", impact, 1, 1.5)
  2494. MagniDamage(impact, 10, 10,12, 0, "Normal")
  2495. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,0),1.5,BrickColor.new("White"))
  2496. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(5,5,0),2.5,BrickColor.new("White"))
  2497. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(5,0,5),5,BrickColor.new("White"))
  2498. for i = 0,1,0.1 do
  2499. swait()
  2500. CameraShake(10, 5)
  2501. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2502. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2503. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2504. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  2505. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  2506. end
  2507. attack = false
  2508. end
  2509.  
  2510. -------- Skills
  2511. function scrollingup()
  2512. attack = true
  2513. for i = 0,3,0.1 do
  2514.  
  2515. swait()
  2516. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2517. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(110)),0.1)
  2518. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-100)),.1)
  2519. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(70), math.rad(90)), 0.1)
  2520. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  2521. end
  2522. local con = hitbox.Touched:connect(function(hit)
  2523. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2524. end)
  2525. local bv = Instance.new("BodyVelocity")
  2526. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2527. bv.velocity = root.CFrame.lookVector*100
  2528. bv.Parent = root
  2529. CFuncs["Sound"].Create("rbxassetid://231917788", root, 2.5, 1)
  2530. CFuncs["Sound"].Create("rbxassetid://231917845", root, 2.5, 1)
  2531. CFuncs["Sound"].Create("rbxassetid://231917801", root, 1, 1)
  2532. wave2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(10,1,10),35,BrickColor.new("White"))
  2533. wave2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(10,1,10),5,BrickColor.new("White"))
  2534. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5,BrickColor.new("White"))
  2535. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1,BrickColor.new("White"))
  2536. coroutine.resume(coroutine.create(function()
  2537. wait(0.45)
  2538. bv:Destroy()
  2539. end))
  2540. for z = 0, 1 do
  2541. MagniDamage(root, 15, 13,15, 0, "Normal")
  2542. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),5,BrickColor.new("White"))
  2543. ring2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(15,15,1),25,BrickColor.new("Toothpaste"))
  2544. ring2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(15,15,1),2.5,BrickColor.new("Toothpaste"))
  2545. for i = 0,1,0.3 do
  2546. CameraShake(6, 3)
  2547. swait()
  2548. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2549. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-30)),0.3)
  2550. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2551. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2552. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2553. end
  2554. for i = 0,1,0.3 do
  2555.  
  2556. swait()
  2557. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2558. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2559. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),.3)
  2560. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2561. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2562. end
  2563. for i = 0,1,0.3 do
  2564.  
  2565. swait()
  2566. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2567. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-180)),0.3)
  2568. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2569. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2570. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2571. end
  2572. for i = 0,1,0.3 do
  2573.  
  2574. swait()
  2575. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2576. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-270)),0.3)
  2577. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2578. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2579. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2580. end
  2581. end
  2582. attack = false
  2583. con:disconnect()
  2584. end
  2585.  
  2586. function lemmesmashyoo()
  2587. attack = true
  2588. CFuncs["Sound"].Create("rbxassetid://136007472", root, 0.75, 1.15)
  2589. sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(-25,-25,-25),1.75)
  2590. for i = 0,5,0.1 do
  2591.  
  2592. swait()
  2593. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.5)
  2594. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.1)
  2595. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2596. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(-40)), 0.1)
  2597. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(40)), 0.1)
  2598. end
  2599. for i = 0,1,0.1 do
  2600. swait()
  2601. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2602. CameraShake(8, 4)
  2603. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2604. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2605. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  2606. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  2607. end
  2608. local impact = Instance.new("Part")
  2609. impact.Parent = char
  2610. impact.BrickColor = origcolor
  2611. impact.CanCollide = false
  2612. impact.Material = "Neon"
  2613. impact.Anchored = true
  2614. impact.TopSurface = 0
  2615. impact.BottomSurface = 0
  2616. impact.Transparency = 1
  2617. impact.Size = vt(2,2,2)
  2618. impact.Position = bladt.Position
  2619. game:GetService("Debris"):AddItem(impact, 5)
  2620. CFuncs["Sound"].Create("rbxassetid://157878578", impact, 1.5, 0.75)
  2621. CFuncs["Sound"].Create("rbxassetid://157878578", impact, 0.5, 0.5)
  2622. CFuncs["Sound"].Create("rbxassetid://231917806", impact, 2.25, 0.5)
  2623. CFuncs["Sound"].Create("rbxassetid://231917845", impact, 2.25, 0.5)
  2624. CFuncs["Sound"].Create("rbxassetid://231917833", impact, 2.25, 1.25)
  2625. MagniDamage(impact, 27.5, 15,17, 0, "Normal")
  2626. ring2("Add",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,0),1.25,BrickColor.new("White"))
  2627. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(5,5,0),1.5,BrickColor.new("White"))
  2628. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(5,0,5),3.5,BrickColor.new("White"))
  2629. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(15,0,15),5,BrickColor.new("White"))
  2630. ring2("Add",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(0,0,0),50,BrickColor.new("Really black"))
  2631. beam("Add",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),1)
  2632. beam("Add",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),1.25)
  2633. for i = 0,1,0.1 do
  2634. swait()
  2635. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2636. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2637. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2638. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  2639. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  2640. end
  2641. attack = false
  2642. end
  2643. ---
  2644.  
  2645. local attacktype = 1
  2646. mouse.Button1Down:connect(function()
  2647. if equipped == true then
  2648. if attack == false and attacktype == 1 then
  2649. attacktype = 2
  2650. attackone()
  2651. elseif attack == false and attacktype == 2 then
  2652. attacktype = 3
  2653. attacktwo()
  2654. elseif attack == false and attacktype == 3 then
  2655. attacktype = 4
  2656. attackthree()
  2657. elseif attack == false and attacktype == 4 then
  2658. attacktype = 1
  2659. attackfour()
  2660. end
  2661. end
  2662. end)
  2663. mouse.KeyDown:connect(function(k)
  2664. if k == "f" and attack == false and equipped == false then
  2665. equipanim()
  2666. elseif k == "f" and attack == false and equipped == true then
  2667. unequipanim()
  2668. end
  2669. if equipped == true then
  2670. if k == "z" and attack == false then
  2671. scrollingup()
  2672. end
  2673. if k == "x" and attack == false then
  2674. lemmesmashyoo()
  2675. end
  2676. end
  2677. end)
  2678. Humanoid.Animator.Parent = nil
  2679. idleanim=.4
  2680. while true do
  2681. swait()
  2682. sine = sine + change
  2683. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2684. local velderp=RootPart.Velocity.y
  2685. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2686. if equipped==true or equipped==false then
  2687. if attack==false then
  2688. idle=idle+1
  2689. else
  2690. idle=0
  2691. end
  2692. if idle>=500 then
  2693. if attack==false then
  2694. end
  2695. end
  2696. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2697. Anim="Jump"
  2698. if attack==false then
  2699. 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)
  2700. 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)
  2701. 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)
  2702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2703. 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)
  2704. 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)
  2705. if equipped == true then
  2706. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(-10),math.rad(180),math.rad(0)),0.1)
  2707. end
  2708. end
  2709. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2710. Anim="Fall"
  2711. if attack==false then
  2712. 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)
  2713. 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)
  2714. 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)
  2715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2716. 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)
  2717. 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)
  2718. if equipped == true then
  2719. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(-10),math.rad(180),math.rad(0)),0.1)
  2720. end
  2721. end
  2722. elseif torvel<1 and hitfloor~=nil then
  2723. Anim="Idle"
  2724. if equipped == false then
  2725. if dashing == false then
  2726. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-15)),.1)
  2727. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  2728. end
  2729. if attack==false then
  2730. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),0.1)
  2731. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 100))*angles(math.rad(-10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 100))),.1)
  2732. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 100)),math.rad(-10),math.rad(-20 - 2.5 * math.cos(sine / 100))),.1)
  2733. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(2.5),math.rad(0),math.rad(20 + 5 * math.cos(sine / 100))),.1)
  2734. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(-25),math.rad(0),math.rad(-15 + 1.5 * math.cos(sine / 100))),.1)
  2735. end
  2736. elseif equipped == true then
  2737. if dashing == false then
  2738. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-15)),.1)
  2739. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  2740. end
  2741. if attack==false then
  2742. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2743. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 100))*angles(math.rad(10),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 100))),.1)
  2744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 100))),.1)
  2745. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(2.5),math.rad(75),math.rad(40 + 5 * math.cos(sine / 100))),.1)
  2746. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(60),math.rad(0),math.rad(20 + 1.5 * math.cos(sine / 100))),.1)
  2747. end
  2748. end
  2749. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2750. Anim="Walk"
  2751. if equipped == false then
  2752. if dashing == false then
  2753. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 6))),.1)
  2754. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 6))),.1)
  2755. end
  2756. if attack==false then
  2757. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),0.1)
  2758. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  2759. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  2760. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(10)),.1)
  2761. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.1)
  2762. end
  2763. elseif equipped == true then
  2764. if dashing == false then
  2765. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 12))),.1)
  2766. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 12))),.1)
  2767. end
  2768. if attack==false then
  2769. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(180),math.rad(0)),0.1)
  2770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  2771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  2772. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(20),math.rad(10)),.1)
  2773. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.1)
  2774. end
  2775. end
  2776. elseif torvel>=22 and hitfloor~=nil then
  2777. Anim="Run"
  2778. if dashing == false then
  2779. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2780. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2781. end
  2782. if attack==false then
  2783. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2784. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2785. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2786. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2787. end
  2788. end
  2789. end
  2790. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement