Advertisement
WagnerJunio07

Ddd

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