SHARE
TWEET

Untitled

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