SHARE
TWEET

Untitled

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