SHARE
TWEET

Untitled

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