Advertisement
TheYoutuber_Pro

test #2

Apr 18th, 2022
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 84.89 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end local Player,game,owner = owner,game local RealPlayer = Player do     local rp = RealPlayer    script.Parent = rp.Character      local Event = Instance.new("RemoteEvent")  Event.Name = "UserInput_Event"    local function fakeEvent()        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}        t.connect = t.Connect       return t    end   local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}   local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}   local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)       CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil   end}    CAS.UnbindAction = CAS.BindAction    local function te(self,ev,...)      local t = m[ev]       if t and t._fakeEvent then           for _,f in pairs(t.Functions) do               f(...)           end       end    end    m.TrigEvent = te    UIS.TrigEvent = te    Event.OnServerEvent:Connect(function(plr,io)        if plr~=rp then return end        m.Target = io.Target        m.Hit = io.Hit        if not io.isMouse then            local b = io.UserInputState == Enum.UserInputState.Begin            if io.UserInputType == Enum.UserInputType.MouseButton1 then                return m:TrigEvent(b and "Button1Down" or "Button1Up")            end            for _,t in pairs(CAS.Actions) do                for _,k in pairs(t.Keys) do                    if k==io.KeyCode then                       t.Function(t.Name,io.UserInputState,io)                   end                end            end           m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)        end    end)    Event.Parent = NLS([==[    local Player = game:GetService("Players").LocalPlayer    local Event = script:WaitForChild("UserInput_Event")     local Mouse = Player:GetMouse()    local UIS = game:GetService("UserInputService")    local input = function(io,a)        if a then return end Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})    end    UIS.InputBegan:Connect(input)    UIS.InputEnded:Connect(input)    local h,t    while wait(1/30) do        if h~=Mouse.Hit or t~=Mouse.Target then            h,t=Mouse.Hit,Mouse.Target           Event:FireServer({isMouse=true,Target=t,Hit=h})        end    end]==],Player.Character)    local _rg = game    local fsmt = {       __index = function(self,k)            local s = rawget(self,"_RealService")            if s then return s[k] end        end,        __newindex = function(self,k,v)            local s = rawget(self,"_RealService")            if s then s[k]=v end        end,        __call = function(self,...)            local s = rawget(self,"_RealService")            if s then return s(...) end        end    }    local function FakeService(t,RealService)        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService        return setmetatable(t,fsmt)    end    local g = {        GetService = function(self,s)            return self[s]        end,        Players = FakeService({            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)        },"Players"),        UserInputService = FakeService(UIS,"UserInputService"),        ContextActionService = FakeService(CAS,"ContextActionService"),    }    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)    g.service = g.GetService       g.RunService = FakeService({        RenderStepped = _rg:GetService("RunService").Heartbeat,        BindToRenderStep = function(self,name,_,fun)            self._btrs[name] = self.Heartbeat:Connect(fun)        end,        UnbindFromRenderStep = function(self,name)            self._btrs[name]:Disconnect()        end,    },"RunService")     setmetatable(g,{        __index=function(self,s)            return _rg:GetService(s) or typeof(_rg[s])=="function"            and function(_,...)return _rg[s](_rg,...)end or _rg[s]        end,        __newindex = fsmt.__newindex,        __call = fsmt.__call    })    game,owner = g,g.Players.LocalPlayer end
  2.  
  3. --[[screw bumper cars now we have...
  4.    
  5.    
  6.    
  7.    
  8.     A REAL CAR]]--
  9.  
  10. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  11. secondcolor = "Really black"
  12.  
  13. wait(1 / 60)
  14. Effects = { }
  15. local Player = game.Players.localPlayer
  16. local Character = Player.Character
  17. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  18. local mouse = Player:GetMouse()
  19. local LeftArm = Character["Left Arm"]
  20. local RightArm = Character["Right Arm"]
  21. local LeftLeg = Character["Left Leg"]
  22. local RightLeg = Character["Right Leg"]
  23. local Head = Character.Head
  24. local Torso = Character.Torso
  25. local cam = game.Workspace.CurrentCamera
  26. local RootPart = Character.HumanoidRootPart
  27. local RootJoint = RootPart.RootJoint
  28. local equipped = true
  29. local attack = false
  30. local Anim = 'Idle'
  31. local idle = 0
  32. local attacktype = 1
  33. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  34. local velocity = RootPart.Velocity.y
  35. local sine = 0
  36. local change = 1
  37. local grabbed = false
  38. local cn = CFrame.new
  39. local mr = math.rad
  40. local angles = CFrame.Angles
  41. local ud = UDim2.new
  42. local c3 = Color3.new
  43. local dir = {w = 0, s = 0, a = 0, d = 0}
  44. Climbanim = false
  45. Runkey=false
  46. firemode = false
  47. inair = false
  48. blocking=false
  49. humHsave=0
  50. humDsave=0
  51. extralock=true
  52. lasthit = nil
  53. IKM = false
  54. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  55. ff.Visible = false
  56. HMDX = Humanoid.MoveDirection.X/3
  57. HMDZ = Humanoid.MoveDirection.Z/3
  58. local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
  59. ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)),
  60. ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)),
  61. ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)),
  62. ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)),
  63. ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)),
  64. ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)),
  65. ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))}
  66. local s = Instance.new("Sound",Character)
  67.     s.Name = "BumperCarSound"
  68.     s.SoundId = "http://www.roblox.com/asset/?id=532147820"
  69.     s.Pitch = .7
  70.     s.Volume = 5
  71.     s.Looped = true
  72.     s.archivable = false
  73.     s.Parent = Character
  74.     s:play()
  75. local airtime = Instance.new("Sound",Character)
  76.     airtime.Name = "airtime"
  77.     airtime.SoundId = "http://www.roblox.com/asset/?id=892076107"
  78.     airtime.Volume = 5
  79.     airtime.archivable = false
  80.     airtime.Parent = Character
  81. sflon = true
  82. bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
  83. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  84.     if attack == true then
  85.         bg2.D = 0
  86.         bg2.P = 0
  87.         bg2.maxTorque = Vector3.new(0,0,0)
  88.     end
  89.     if attack == false then
  90.         bg2.D = 100
  91.         bg2.P = 9999
  92.         bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  93. bg2.CFrame  = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
  94.          
  95. end
  96. end)--]]
  97.  
  98. New = function(Object, Parent, Name, Data)
  99.     local Object = Instance.new(Object)
  100.     for Index, Value in pairs(Data or {}) do
  101.         Object[Index] = Value
  102.     end
  103.     Object.Parent = Parent
  104.     Object.Name = Name
  105.     return Object
  106. end
  107.    
  108. BumperCar = New("Model",Workspace,"BumperCar",{})
  109. SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  110. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.7,0.7,0.7),})
  111. wheel = New("Part",BumperCar,"wheels",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 8.15000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  112. wheel2 = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  113. body = New("Part",BumperCar,"car",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
  114. glass = New("Part",BumperCar,"glass",{BrickColor = BrickColor.new("Pastel light blue"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.45000019, -35.7631157, 0.001, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,})
  115. inside = New("Part",BumperCar,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  116. grille = New("Part",BumperCar,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.1,0.1,0.1),})
  117. plate = New("Part",BumperCar,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -44.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  118. rl = New("Part",BumperCar,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
  119. hl = New("Part",BumperCar,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  120. ep = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  121. hitbox = New("Part",BumperCar,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  122. hitbox2 = New("Part",BumperCar,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  123.  
  124. FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -31.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. local mesh2 = Instance.new("FileMesh")
  138. mesh2.Parent = body
  139. mesh2.MeshId = "rbxassetid://1432737948"
  140. local mesh = Instance.new("FileMesh")
  141. mesh.Parent = wheel
  142. mesh.MeshId = "rbxassetid://1432629613"
  143. local mesh3 = Instance.new("FileMesh")
  144. mesh3.Parent = glass
  145. mesh3.MeshId = "rbxassetid://1432810983"
  146. local mesh4 = Instance.new("FileMesh")
  147. mesh4.Parent = inside
  148. mesh4.MeshId = "rbxassetid://1432877497"
  149. local mesh5 = Instance.new("FileMesh")
  150. mesh5.Parent = grille
  151. mesh5.MeshId = "rbxassetid://1432898984"
  152. local mesh6 = Instance.new("FileMesh")
  153. mesh6.Parent = plate
  154. mesh6.MeshId = "rbxassetid://1432917470"
  155. local mesh7 = Instance.new("FileMesh")
  156. mesh7.Parent = rl
  157. mesh7.MeshId = "rbxassetid://1432942116"
  158. local mesh8 = Instance.new("FileMesh")
  159. mesh8.Parent = hl
  160. mesh8.MeshId = "rbxassetid://1432958104"
  161. local Light = Instance.new("SpotLight",hl)
  162. Light.Angle = 90;
  163. Light.Brightness = 100;
  164. Light.Face = Enum.NormalId.Left;
  165. Light.Range = 30;
  166. local lt2 = Instance.new('PointLight',rl)
  167. lt2.Range = 8
  168. lt2.Brightness = 100
  169. lt2.Color = Color3.new(1,0,0)
  170. lt2.Enabled = true
  171. lt2.Shadows = true
  172. ep.Transparency = 1
  173. particle = Instance.new("ParticleEmitter",ep)
  174. particle.Enabled = false
  175. particle.EmissionDirection = "Bottom"
  176. particle.Lifetime = NumberRange.new(2.5,2.501)
  177. particle.Rate = 1500
  178. particle.Texture = "rbxassetid://241629053"
  179. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  180.  
  181. particle.Size = NumberSequence.new(1.4,1.41)
  182. local all,last = {}
  183. function scan(p)
  184.     for _,v in pairs(p:GetChildren()) do
  185.         if (v:IsA("BasePart")) then
  186.             if (last) then
  187.                 local w = Instance.new("Weld")
  188.                 w.Part0,w.Part1 = last,v
  189.                 w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  190.                 w.Parent = last
  191.             end
  192.             table.insert(all,v)
  193.             last = v
  194.         end
  195.         scan(v)
  196.     end
  197. end
  198. scan(BumperCar)
  199.  
  200.  
  201. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false  end
  202. wheel2.Transparency = 1
  203.  wheel2.CanCollide = true
  204. hitbox.CanCollide = true
  205. hitbox.Transparency = 1
  206. hitbox2.CanCollide = true
  207. hitbox2.Transparency = 1
  208. BumperCar.Parent = Character
  209.  
  210. local Services = {
  211.  
  212.  
  213. SoundService = game:GetService("SoundService");
  214. Players = game:GetService("Players");
  215. Debris = game:GetService("Debris");
  216. Workspace = game:GetService("Workspace");
  217. Lighting = game:GetService("Lighting");
  218. HttpService = game:GetService("HttpService");
  219. InsertService = game:GetService("InsertService");
  220.    
  221. }  
  222.  
  223. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  224. Humanoid.Animator:Destroy()
  225. Character.Animate:Destroy()
  226.  
  227. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  228. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  229. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  230.  
  231.  
  232.  
  233. SWW = Instance.new("Weld")
  234. SWW.Name = "SWW"
  235. SWW.Part0 = Torso
  236. SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
  237. SWW.C1 = cn(0, 0, 0)
  238. SWW.Part1 = SwHandle
  239. SWW.Parent = Torso
  240.  
  241. RSH, LSH = nil, nil
  242.  
  243. RW = Instance.new("Weld")
  244. LW = Instance.new("Weld")
  245.  
  246. RH = Torso["Right Hip"]
  247. LH = Torso["Left Hip"]
  248.  
  249. RSH = Torso["Right Shoulder"]
  250. LSH = Torso["Left Shoulder"]
  251.  
  252. RSH.Parent = nil
  253. LSH.Parent = nil
  254.  
  255. RW.Name = "RW"
  256. RW.Part0 = Torso
  257. RW.C0 = cn(1.5, 0.5, 0)
  258. RW.C1 = cn(0, 0.5, 0)
  259. RW.Part1 = RightArm
  260. RW.Parent = Torso
  261.  
  262. LW.Name = "LW"
  263. LW.Part0 = Torso
  264. LW.C0 = cn(-1.5, 0.5, 0)
  265. LW.C1 = cn(0, 0.5, 0)
  266. LW.Part1 = LeftArm
  267. LW.Parent = Torso
  268.  
  269. function clerp(a, b, t)
  270.     local qa = {
  271.         QuaternionFromCFrame(a)
  272.     }
  273.     local qb = {
  274.         QuaternionFromCFrame(b)
  275.     }
  276.     local ax, ay, az = a.x, a.y, a.z
  277.     local bx, by, bz = b.x, b.y, b.z
  278.     local _t = 1 - t
  279.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  280. end
  281.  
  282. function QuaternionFromCFrame(cf)
  283.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  284.     local trace = m00 + m11 + m22
  285.     if trace > 0 then
  286.         local s = math.sqrt(1 + trace)
  287.         local recip = 0.5 / s
  288.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  289.     else
  290.         local i = 0
  291.         if m11 > m00 then
  292.             i = 1
  293.         end
  294.         if m22 > (i == 0 and m00 or m11) then
  295.             i = 2
  296.         end
  297.         if i == 0 then
  298.             local s = math.sqrt(m00 - m11 - m22 + 1)
  299.             local recip = 0.5 / s
  300.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  301.         elseif i == 1 then
  302.             local s = math.sqrt(m11 - m22 - m00 + 1)
  303.             local recip = 0.5 / s
  304.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  305.         elseif i == 2 then
  306.             local s = math.sqrt(m22 - m00 - m11 + 1)
  307.             local recip = 0.5 / s
  308.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  309.         end
  310.     end
  311. end
  312.  
  313. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  314.     local xs, ys, zs = x + x, y + y, z + z
  315.     local wx, wy, wz = w * xs, w * ys, w * zs
  316.     local xx = x * xs
  317.     local xy = x * ys
  318.     local xz = x * zs
  319.     local yy = y * ys
  320.     local yz = y * zs
  321.     local zz = z * zs
  322.     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))
  323. end
  324.  
  325. function QuaternionSlerp(a, b, t)
  326.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  327.     local startInterp, finishInterp;
  328.     if cosTheta >= 0.0001 then
  329.         if (1 - cosTheta) > 0.0001 then
  330.             local theta = math.acos(cosTheta)
  331.             local invSinTheta = 1 / math.sin(theta)
  332.             startInterp = math.sin((1 - t) * theta) * invSinTheta
  333.             finishInterp = math.sin(t * theta) * invSinTheta  
  334.         else
  335.             startInterp = 1 - t
  336.             finishInterp = t
  337.         end
  338.     else
  339.         if (1 + cosTheta) > 0.0001 then
  340.             local theta = math.acos(-cosTheta)
  341.             local invSinTheta = 1 / math.sin(theta)
  342.             startInterp = math.sin((t - 1) * theta) * invSinTheta
  343.             finishInterp = math.sin(t * theta) * invSinTheta
  344.         else
  345.             startInterp = t - 1
  346.             finishInterp = t
  347.         end
  348.     end
  349.     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
  350. end
  351.  
  352. function swait(num)
  353.     if num == 0 or num == nil then
  354.         game:service'RunService'.RenderStepped:wait(0)
  355.     else
  356.         for i = 0, num do
  357.             game:service'RunService'.RenderStepped:wait(0)
  358.         end
  359.     end
  360. end
  361.  
  362. local RbxUtility = LoadLibrary("RbxUtility")
  363. local Create = RbxUtility.Create
  364.  
  365. function RemoveOutlines(part)
  366.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  367. end
  368.    
  369. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  370.     local Part = Create("Part"){
  371.         formFactor = FormFactor,
  372.         Parent = Parent,
  373.         Reflectance = Reflectance,
  374.         Transparency = Transparency,
  375.         CanCollide = false,
  376.         Locked = true,
  377.         BrickColor = BrickColor.new(tostring(BColor)),
  378.         Name = Name,
  379.         Size = Size,
  380.         Material = Material,
  381.     }
  382.     RemoveOutlines(Part)
  383.     return Part
  384. end
  385.    
  386. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  387.     local Msh = Create(Mesh){
  388.         Parent = Part,
  389.         Offset = OffSet,
  390.         Scale = Scale,
  391.     }
  392.     if Mesh == "SpecialMesh" then
  393.         Msh.MeshType = MeshType
  394.         Msh.MeshId = MeshId
  395.     end
  396.     return Msh
  397. end
  398.    
  399. function CreateWeld(Parent, Part0, Part1, C0, C1)
  400.     local Weld = Create("Weld"){
  401.         Parent = Parent,
  402.         Part0 = Part0,
  403.         Part1 = Part1,
  404.         C0 = C0,
  405.         C1 = C1,
  406.     }
  407.     return Weld
  408. end
  409.  
  410. function rayCast(Position, Direction, Range, Ignore)
  411.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  412. end
  413.  
  414. function CreateSound(id, par, vol, pit)
  415.     coroutine.resume(coroutine.create(function()
  416.         local sou = Instance.new("Sound", par or workspace)
  417.         sou.Volume = vol
  418.         sou.Pitch = pit or 1
  419.         sou.SoundId = id
  420.         wait()
  421.         sou:play()
  422.         game:GetService("Debris"):AddItem(sou, 6)
  423.     end))
  424. end
  425. function CreateSong(id, par, vol, pit)
  426.     coroutine.resume(coroutine.create(function()
  427.      sou2 = Instance.new("Sound", par or workspace)
  428.         sou2.Volume = vol
  429.         sou2.Pitch = 1
  430.         sou2.SoundId = id
  431.         wait()
  432.         sou2:play()
  433.         sou2.Looped = true     
  434.     end))
  435. end
  436.  
  437. local function getclosest(obj, distance)
  438.     local last, lastx = distance + 1
  439.     for i, v in pairs(workspace:GetChildren()) do
  440.         if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  441.             local t = v.Torso
  442.             local dist = (t.Position - obj.Position).magnitude
  443.             if dist <= distance then
  444.                 if dist < last then
  445.                     last = dist
  446.                     lastx = v
  447.                 end
  448.             end
  449.         end
  450.     end
  451.     return lastx
  452. end
  453.  
  454. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  455.     for i, v in pairs(hit:GetChildren()) do
  456.         if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  457.             local find = v:FindFirstChild("Hitz")
  458.             if not find then
  459.                 if v.Parent:findFirstChild("Head") then
  460.                     local BillG = Create("BillboardGui"){
  461.                         Parent = v.Parent.Head,
  462.                         Size = UDim2.new(1, 0, 1, 0),
  463.                         Adornee = v.Parent.Head,
  464.                         StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  465.                     }
  466.                     local TL = Create("TextLabel"){
  467.                         Parent = BillG,
  468.                         Size = UDim2.new(3, 3, 3, 3),
  469.                         BackgroundTransparency = 1,
  470.                         Text = tostring(damage).."-",
  471.                         TextColor3 = Color1.Color,
  472.                         TextStrokeColor3 = Color2.Color,
  473.                         TextStrokeTransparency = 0,
  474.                         TextXAlignment = Enum.TextXAlignment.Center,
  475.                         TextYAlignment = Enum.TextYAlignment.Center,
  476.                         FontSize = Enum.FontSize.Size18,
  477.                         Font = "ArialBold",
  478.                     }
  479.                     coroutine.resume(coroutine.create(function()
  480.                         wait(1)
  481.                         for i = 0, 1, .1 do
  482.                             wait(.1)
  483.                             BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  484.                         end
  485.                         BillG:Destroy()
  486.                     end))
  487.                 end
  488.                 v.Health = v.Health - damage
  489.                 local bool = Create("BoolValue"){
  490.                     Parent = v,
  491.                     Name = 'Hitz',
  492.                 }
  493.                 if HSound ~= nil and HPitch ~= nil then
  494.                     CreateSound(HSound, hit, 1, HPitch)
  495.                 end
  496.                 game:GetService("Debris"):AddItem(bool, cooldown)
  497.             end
  498.         end
  499.     end
  500. end
  501.  
  502.  
  503. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  504.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  505.     prt.Anchored = true
  506.     prt.CFrame = cframe
  507.     local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  508.     game:GetService("Debris"):AddItem(prt, 10)
  509.     if Type == 1 or Type == nil then
  510.         table.insert(Effects, {
  511.             prt,
  512.             "Block1",
  513.             delay,
  514.             x3,
  515.             y3,
  516.             z3,
  517.             msh
  518.         })
  519.     elseif Type == 2 then
  520.         table.insert(Effects, {
  521.             prt,
  522.             "Block2",
  523.             delay,
  524.             x3,
  525.             y3,
  526.             z3,
  527.             msh
  528.         })
  529.     elseif Type == 3 then
  530.         table.insert(Effects, {
  531.             prt,
  532.             "Block3",
  533.             delay,
  534.             x3,
  535.             y3,
  536.             z3,
  537.             msh
  538.         })
  539.     end
  540. end
  541.  
  542. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  543.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  544.     prt.Anchored = true
  545.     prt.CFrame = cframe
  546.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  547.     game:GetService("Debris"):AddItem(prt, 10)
  548.     table.insert(Effects, {
  549.         prt,
  550.         "Cylinder",
  551.         delay,
  552.         x3,
  553.         y3,
  554.         z3,
  555.         msh
  556.     })
  557. end
  558.  
  559. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  560.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  561.     prt.Anchored = true
  562.     prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  563.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  564.     game:GetService("Debris"):AddItem(prt, 10)
  565.     table.insert(Effects, {
  566.         prt,
  567.         "Cylinder",
  568.         delay,
  569.         x3,
  570.         y3,
  571.         z3,
  572.         msh
  573.     })
  574. end
  575.  
  576. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  577.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  578.     prt.Anchored = true
  579.     prt.CFrame = cframe
  580.     local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  581.     game:GetService("Debris"):AddItem(prt, 10)
  582.     table.insert(Effects, {
  583.         prt,
  584.         "Cylinder",
  585.         delay,
  586.         x3,
  587.         y3,
  588.         z3,
  589.         msh
  590.     })
  591. end
  592.  
  593. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  594.     local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  595.     prt.Anchored = true
  596.     prt.CFrame = cframe
  597.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  598.     game:GetService("Debris"):AddItem(prt, 10)
  599.     table.insert(Effects, {
  600.         prt,
  601.         "Cylinder",
  602.         delay,
  603.         x3,
  604.         y3,
  605.         z3,
  606.         msh
  607.     })
  608. end
  609.  
  610. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  611.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  612.     prt.Anchored = true
  613.     prt.CFrame = cframe
  614.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  615.     game:GetService("Debris"):AddItem(prt, 10)
  616.     table.insert(Effects, {
  617.         prt,
  618.         "Cylinder",
  619.         delay,
  620.         x3,
  621.         y3,
  622.         z3,
  623.         msh
  624.     })
  625. end
  626.  
  627. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  628.     local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  629.     prt.Anchored = true
  630.     prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  631.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  632.     local num = math.random(10, 50) / 1000
  633.     game:GetService("Debris"):AddItem(prt, 10)
  634.     table.insert(Effects, {
  635.         prt,
  636.         "Shatter",
  637.         num,
  638.         prt.CFrame,
  639.         math.random() - math.random(),
  640.         0,
  641.         math.random(50, 100) / 100
  642.     })
  643. end
  644.  
  645.  
  646.    
  647.  
  648.     for i = 0, 1, 0.05 do
  649.         swait()
  650.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  651.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  652.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  653.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  654.         if Torsovelocity > 2 then
  655.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  656.         RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  657.         LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  658.         elseif Torsovelocity < 1 then
  659.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  660.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  661.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  662.         end
  663.     end
  664.     attack = false
  665.  
  666.  
  667.  
  668. game:GetService'RunService'.Stepped:connect(function()
  669.     Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  670.     velocity = RootPart.Velocity.y
  671.     sine = sine + change
  672.     local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  673.     if equipped == true or equipped == false then
  674.         if RootPart.Velocity.y > -1 and hit == nil then
  675.             Anim = "Jump"
  676.             inair = true
  677.  
  678.             if attack == false then
  679.                     s.Pitch = 1
  680.     s.Volume = 5
  681.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  682.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  683.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1)
  684.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1)
  685.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  686.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  687. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)  
  688.             end        
  689.         elseif RootPart.Velocity.y < -1 and hit == nil then
  690.             Anim = "Fall"
  691.             inair = true
  692.  
  693.             if attack == false then
  694.     s.Pitch = .7
  695.     s.Volume = 5               
  696.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  697.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  698.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05)
  699.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05)
  700.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  701.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  702. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)  
  703.             end
  704.         elseif Torsovelocity < 1 and hit ~= nil then
  705.             Anim = "Idle"
  706.    
  707.             inair = false
  708.         if attack == false then
  709.     s.Pitch = .7
  710.     s.Volume = 5           
  711.                 change = 0.8
  712.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  713.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  714.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  715.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  716.                     RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  717.                     LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  718. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)          
  719.             end --]]
  720.  
  721.         elseif Torsovelocity > 1 and hit ~= nil then
  722.             Anim = "Walk"
  723. inair = false  
  724.  
  725.             if attack == false and Runkey == true then
  726.     s.Pitch = 1.2
  727.     s.Volume = 5
  728.    
  729.                                 change = 1
  730.                                 Humanoid.WalkSpeed = 60
  731.                                 Humanoid.JumpPower = 105
  732.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4)
  733.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0),  math.rad(-0) + RootPart.RotVelocity.Y/20), .2)
  734.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2)
  735.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2)
  736.                     RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4)
  737.                     LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4)
  738. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4) 
  739.             end
  740.             if attack == false and Runkey == false then
  741.     s.Pitch = .8
  742.     s.Volume = 5
  743.             change = 0.65
  744.             Humanoid.WalkSpeed = 30
  745.             Humanoid.JumpPower = 50
  746.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3)
  747.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1)
  748.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  749.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  750.                     RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  751.                     LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  752. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)      
  753.             end
  754.  
  755.     function onClimbing(speed)
  756.         if attack == false then
  757.         attack = true
  758.         Climbanim= true
  759.         Humanoid.WalkSpeed = 14
  760. while Climbanim == true do
  761.     for i = 0, 0, 0.1 do
  762.         swait()
  763.    
  764.     change = 0.5   
  765.    
  766.    
  767.    
  768.     if RootPart.Velocity.y > .01 then
  769.             s.Pitch = .9
  770.     s.Volume = 5
  771.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
  772.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  773.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  774.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  775.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  776.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  777. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)  
  778.     end
  779.            
  780.            
  781.            
  782.            
  783.     if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5  then
  784.             s.Pitch = .7
  785.     s.Volume = 5
  786.                             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
  787.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  788.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  789.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  790.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  791.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  792. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)  
  793.                 end            
  794.            
  795.            
  796.         if RootPart.Velocity.y < -1 then
  797.                 s.Pitch = .9
  798.     s.Volume = 5
  799.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
  800.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  801.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  802.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  803.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  804.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  805. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)               end        
  806.            
  807.     end
  808.     if  Torsovelocity > 1  then
  809.     Climbanim = false
  810.     end
  811. end
  812. attack = false 
  813.     end
  814.     end
  815.     Humanoid.Climbing:connect(onClimbing)
  816.                    
  817.            
  818.            
  819.         end
  820.     end
  821.  
  822.    
  823.     if #Effects > 0 then
  824.         for e = 1, #Effects do
  825.             if Effects[e] ~= nil then
  826.                 local Thing = Effects[e]
  827.                 if Thing ~= nil then
  828.                     local Part = Thing[1]
  829.                     local Mode = Thing[2]
  830.                     local Delay = Thing[3]
  831.                     local IncX = Thing[4]
  832.                     local IncY = Thing[5]
  833.                     local IncZ = Thing[6]
  834.                     if Thing[1].Transparency <= 1 then
  835.                         if Thing[2] == "Block1" then
  836.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  837.                             local Mesh = Thing[1].Mesh
  838.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  839.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  840.                         elseif Thing[2] == "Block2" then
  841.                             Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
  842.                             local Mesh = Thing[7]
  843.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  844.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  845.                         elseif Thing[2] == "Block3" then
  846.                             Thing[1].CFrame = Thing[1].CFrame  * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0)
  847.                             local Mesh = Thing[7]
  848.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  849.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]                           
  850.                         elseif Thing[2] == "Cylinder" then
  851.                             local Mesh = Thing[1].Mesh
  852.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  853.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  854.                         elseif Thing[2] == "Blood" then
  855.                             local Mesh = Thing[7]
  856.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  857.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  858.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  859.                         elseif Thing[2] == "Elec" then
  860.                             local Mesh = Thing[1].Mesh
  861.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  862.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  863.                         elseif Thing[2] == "Disappear" then
  864.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  865.                         elseif Thing[2] == "Shatter" then
  866.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  867.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  868.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  869.                             Thing[6] = Thing[6] + Thing[5]
  870.                         end
  871.                     else
  872.                         Part.Parent = nil
  873.                         table.remove(Effects, e)
  874.                     end
  875.                 end
  876.             end
  877.         end
  878.     end
  879. end)
  880.  
  881.  
  882.     Effects = {
  883. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  884.    
  885.     local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  886.     prt.Anchored = true
  887.     prt.CFrame = cframe
  888.     local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  889.     game:GetService("Debris"):AddItem(prt, 10)
  890.     if Type == 1 or Type == nil then
  891.         table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  892.     else
  893.         if Type == 2 then
  894.             table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  895.         else
  896.             table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  897.         end
  898.     end
  899. end
  900. }
  901. ,
  902. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  903.    
  904.     local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  905.     prt.Anchored = true
  906.     prt.CFrame = cframe
  907.     local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  908.     game:GetService("Debris"):AddItem(prt, 10)
  909.     table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  910. end
  911. }
  912. ,
  913. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  914.    
  915.     local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  916.     prt.Anchored = true
  917.     prt.CFrame = cframe
  918.     local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  919.     game:GetService("Debris"):AddItem(prt, 10)
  920.     table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  921. end
  922. }
  923. ,
  924. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  925.    
  926.     local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  927.     prt.Anchored = true
  928.     prt.CFrame = cframe
  929.     local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
  930.     game:GetService("Debris"):AddItem(prt, 10)
  931.     table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
  932. end
  933. }
  934. ,
  935. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  936.    
  937.     local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  938.     prt.Anchored = true
  939.     prt.CFrame = cframe
  940.     local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  941.     game:GetService("Debris"):AddItem(prt, 10)
  942.     table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  943. end
  944. }
  945. ,
  946. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  947.    
  948.     local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  949.     prt.Anchored = true
  950.     prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  951.     local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  952.     local num = math.random(10, 50) / 1000
  953.     game:GetService("Debris"):AddItem(prt, 10)
  954.     table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  955. end
  956. }
  957. }
  958.  
  959.  
  960.  
  961.     RemoveOutlines = function(part)
  962.    
  963.     part.TopSurface = 10
  964. end
  965.  
  966.     CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  967.    
  968.     local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  969.     RemoveOutlines(Part)
  970.     return Part
  971. end
  972.  
  973.     CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  974.    
  975.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  976.     if Mesh == "SpecialMesh" then
  977.         Msh.MeshType = MeshType
  978.         Msh.MeshId = MeshId
  979.     end
  980.     return Msh
  981. end
  982.  
  983.     CreateWeld = function(Parent, Part0, Part1, C0, C1)
  984.    
  985.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  986.     return Weld
  987. end
  988.  
  989.  
  990.  
  991.  
  992. WSHM = {'White',"Pastel light red"}
  993. WSH = WSHM[math.random(1,#WSHM)]
  994.  
  995.  
  996. IcePartFunk = function(HPart,aria,Min,Max)
  997.    
  998. IcePart = Instance.new("Part",HPart)
  999. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1000. IcePart.CanCollide = false
  1001. IuW = Instance.new("Weld")
  1002. IuW.Name = "GuW"
  1003. IuW.Part0 = HPart
  1004. IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
  1005. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  1006. IuW.Part1 = IcePart
  1007. IuW.Parent = HPart
  1008. IcePart.Transparency = .85
  1009. IcePart.Material= "Neon"
  1010. WSH = WSHM[math.random(1,#WSHM)]
  1011. IcePart.BrickColor = BrickColor.new(""..WSH)
  1012.  
  1013. RemoveOutlines(IcePart)
  1014. game:GetService("Debris"):AddItem(IuW, 4)
  1015. game:GetService("Debris"):AddItem(IcePart, 6)
  1016.  
  1017.  
  1018. end
  1019. --[[
  1020. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
  1021.    
  1022. IcePart2 = Instance.new("Part",HPart)
  1023. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1024. IcePart2.CanCollide = false
  1025. RemoveOutlines(IcePart2)
  1026. IcePart2.Anchored = true
  1027.  
  1028.  
  1029.  
  1030. IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037. IcePart2.Transparency = .85
  1038. IcePart2.Material= "Neon"
  1039.  
  1040. IcePart2.BrickColor = BrickColor.new(""..color)
  1041.  
  1042.  
  1043.  
  1044. game:GetService("Debris"):AddItem(IcePart2, 6)
  1045.  
  1046.  
  1047. end
  1048. --]]
  1049. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
  1050.    
  1051. IcePart2 = Instance.new("Part",HPart)
  1052. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1053. IcePart2.CanCollide = false
  1054. RemoveOutlines(IcePart2)
  1055. IcePart2.Anchored = true
  1056. game:GetService("Debris"):AddItem(IcePart2, .4)
  1057. IcePart2.Transparency = .3
  1058. IcePart2.Material= "Neon"
  1059. IcePart2.BrickColor = BrickColor.new(""..color)
  1060.  
  1061. IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)))
  1062. for i = 0,num do
  1063. if num > 1 then
  1064. GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)
  1065. end
  1066. end
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078. end
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084. SpikeMeshId = 1033714
  1085. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1086.  
  1087.  
  1088. local Part = Instance.new("Part", Parent)
  1089. Part.Name = Name
  1090. Part.BrickColor = BrickColor.new(Color)
  1091. Part.Size = Size
  1092. Part.Material = Material
  1093. Part.Transparency = Transparency
  1094. Part.CanCollide = false
  1095. RemoveOutlines(Part)
  1096.  
  1097. local Mesh = Instance.new("SpecialMesh", Part)
  1098. Mesh.MeshType = "Sphere"
  1099. Mesh.Scale = Scale
  1100.  
  1101. return Mesh and Part
  1102.  
  1103. end
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.     CFuncs = {
  1113. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1114.    
  1115.     local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1116.     RemoveOutlines(Part)
  1117.     return Part
  1118. end
  1119. }
  1120. ,
  1121. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1122.    
  1123.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1124.     if Mesh == "SpecialMesh" then
  1125.         Msh.MeshType = MeshType
  1126.         Msh.MeshId = MeshId
  1127.     end
  1128.     return Msh
  1129. end
  1130. }
  1131. ,
  1132. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1133.    
  1134.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1135.     if Mesh == "SpecialMesh" then
  1136.         Msh.MeshType = MeshType
  1137.         Msh.MeshId = MeshId
  1138.     end
  1139.     return Msh
  1140. end
  1141. }
  1142. ,
  1143. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1144.    
  1145.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1146.     return Weld
  1147. end
  1148. }
  1149. ,
  1150. Sound = {Create = function(id, par, vol, pit)
  1151.    
  1152.     coroutine.resume(coroutine.create(function()
  1153.        
  1154.         local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1155.         wait()
  1156.         S:play()
  1157.         game:GetService("Debris"):AddItem(S, 6)
  1158.     end
  1159. ))
  1160. end
  1161. }
  1162. ,
  1163. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1164.    
  1165.     local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  1166.     return fp
  1167. end
  1168. }
  1169. }
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.     Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1176.    
  1177.     if hit.Parent == nil then
  1178.         return
  1179.     end
  1180.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1181.     for _,v in pairs(hit.Parent:children()) do
  1182.         if v:IsA("Humanoid") then
  1183.             h.MaxHealth = 100
  1184.             h = v
  1185.         end
  1186.     end
  1187.     if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1188.         if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1189.             return
  1190.         end
  1191.         local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1192.         game:GetService("Debris"):AddItem(c, 0.5)
  1193.         if HitSound ~= nil and HitPitch ~= nil then
  1194.             CreateSound(HitSound, hit, 1, HitPitch)
  1195.         end
  1196.         local Damage = math.random(minim, maxim)
  1197.         local blocked = false
  1198.         local block = hit.Parent:findFirstChild("Block")
  1199.         if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1200.             blocked = true
  1201.             block.Value = block.Value - 1
  1202.             print(block.Value)
  1203.         end
  1204.         if blocked == false then
  1205.             h.Health = h.Health - Damage
  1206.             ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1207.         else
  1208.             h.Health = h.Health - Damage / 2
  1209.             ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1210.         end
  1211. if hit.Parent:FindFirstChild("Torso") ~= nil then  
  1212. lasthit = hit.Parent.Torso
  1213. end
  1214.         if Type == "Knockdown" then
  1215.             local hum = hit.Parent.Humanoid
  1216.             hum.PlatformStand = true
  1217.             coroutine.resume(coroutine.create(function(HHumanoid)
  1218.        
  1219.         swait(.2)
  1220.         HHumanoid.PlatformStand = false
  1221.     end
  1222. ), hum)
  1223.             local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1224.             local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1225.             local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1226.             game:GetService("Debris"):AddItem(bodvol, 0.1)
  1227.             game:GetService("Debris"):AddItem(rl, 0.1)
  1228.         elseif Type == "Normal" then
  1229.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1230.                     if knockback > 0 then
  1231.                         vp.Parent = hit.Parent.Torso
  1232.                     end
  1233.                     game:GetService("Debris"):AddItem(vp, 0.5)
  1234.                     elseif Type == "Impale" then
  1235.  
  1236. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))
  1237. Spike.Anchored = true
  1238. Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
  1239. Spike.Position = hit.Parent.Torso.Position
  1240.  
  1241. Services.Debris:AddItem(Spike, 4)
  1242.  
  1243.  
  1244.  
  1245.  
  1246.    
  1247.  
  1248. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2) 
  1249.             hit.Parent.Humanoid.PlatformStand = true
  1250.            
  1251.        
  1252.         swait(1)
  1253.         hit.Parent.Humanoid.PlatformStand = false
  1254.                 elseif Type == "Up" then
  1255.                             local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1256.                             game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1257.                             local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1258.                             game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1259.                
  1260.                
  1261.                
  1262.     elseif Type == "UltSlice" then         
  1263.                
  1264. BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0,          0.01,2)   
  1265. BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0,          0.01,2)
  1266. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0,           0.01,2)  
  1267. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)   
  1268. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)
  1269. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.01,2)
  1270. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.01,2)                
  1271.                
  1272.                                
  1273.         elseif Type == "Slice" then
  1274.                                     local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Torso})
  1275.                                     game:GetService("Debris"):AddItem(bp2, 1)
  1276.    
  1277. if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then   
  1278.             for i = 1,10 do
  1279. Effects.Break.Create    (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
  1280.            
  1281.    
  1282.             end
  1283.             end
  1284.        
  1285.            
  1286.            
  1287.            
  1288.                         elseif Type == "Snare" then
  1289.                                     local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1290.                                     game:GetService("Debris"):AddItem(bp, 1)
  1291.         elseif Type == "Slowness" then
  1292.                     local   SpeedSave=hit.Parent.Humanoid.WalkSpeed
  1293.                            
  1294.                             for i = 1,25 do
  1295. hit.Parent.Humanoid.WalkSpeed = 4      
  1296. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  1297. end
  1298.                         wait(4)
  1299.                         hit.Parent.Humanoid.WalkSpeed = SpeedSave  
  1300.         elseif Type == "Firedmg" then
  1301.            
  1302.             for i = 1,math.random(1, 6) do
  1303.                 if hit.Parent:FindFirstChild("Torso") ~= nil then  
  1304.                                         BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  1305.                         BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  1306.                         BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  1307.                        
  1308.            
  1309.            
  1310.             wait(.1)
  1311.             end
  1312.             end
  1313.            
  1314.                         elseif Type == "Freeze" then
  1315.                                     local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1316.                                     game:GetService("Debris"):AddItem(bp, 4)
  1317. for i=1,25 do
  1318.     IcePartFunk(hit.Parent.Torso,1,1.5,2)  
  1319.     end                                                    
  1320.                                 elseif Type == "Freeze2" then
  1321.                                             local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1322.                                             local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1323.                                             hit.Parent.Torso.Anchored = true
  1324.                                             coroutine.resume(coroutine.create(function(Part)
  1325.        
  1326.         swait(1.5)
  1327.         Part.Anchored = false
  1328.     end
  1329. ), hit.Parent.Torso)
  1330.                                             game:GetService("Debris"):AddItem(BodPos, 3)
  1331.                                             game:GetService("Debris"):AddItem(BodGy, 3)
  1332.                                         end
  1333.                                             local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1334.                                             game:GetService("Debris"):AddItem(debounce, Delay)
  1335.                                             c = Instance.new("ObjectValue")
  1336.                                             c.Name = "creator"
  1337.                                             c.Value = Player
  1338.                                             c.Parent = h
  1339.                                             game:GetService("Debris"):AddItem(c, 0.5)
  1340.                                         end
  1341.                                     end
  1342.  
  1343.     ShowDamage = function(Pos, Text, Time, Color)
  1344.    
  1345.     local Rate = 0.033333333333333
  1346.     if not Pos then
  1347.         local Pos = Vector3.new(0, 0, 0)
  1348.     end
  1349.     local Text = Text or ""
  1350.     local Time = Time or 2
  1351.     if not Color then
  1352.         local Color = Color3.new(1, 0, 1)
  1353.     end
  1354.     local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1355.     EffectPart.Anchored = true
  1356.     local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1357.     local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1358.     game.Debris:AddItem(EffectPart, Time + 0.1)
  1359.     EffectPart.Parent = game:GetService("Workspace")
  1360.     delay(0, function()
  1361.        
  1362.         local Frames = Time / Rate
  1363.         for Frame = 1, Frames do
  1364.             wait(Rate)
  1365.             local Percent = Frame / Frames
  1366.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1367.             TextLabel.TextTransparency = Percent
  1368.         end
  1369.         if EffectPart and EffectPart.Parent then
  1370.             EffectPart:Destroy()
  1371.         end
  1372.     end
  1373. )
  1374. end
  1375.  
  1376.     MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1377.    
  1378.     for _,c in pairs(workspace:children()) do
  1379.         local hum = c:findFirstChildOfClass("Humanoid")
  1380.         if hum ~= nil then
  1381.             local head = c:findFirstChild("Head")
  1382.             if head ~= nil then
  1383.                 local targ = head.Position - Part.Position
  1384.                 local mag = targ.magnitude
  1385.                 if mag <= magni and c.Name ~= Player.Name then
  1386.                     Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2)
  1387.                 end
  1388.             end
  1389.         end
  1390.     end
  1391. end
  1392.     MagniKILL = function(Part, magni, knock, Type)
  1393.    
  1394.     for _,c in pairs(workspace:children()) do
  1395.         local hum = c:findFirstChildOfClass("Humanoid")
  1396.         if hum ~= nil then
  1397.             local head = c:findFirstChild("Head")
  1398.             if head ~= nil then
  1399.                 local targ = head.Position - Part.Position
  1400.                 local mag = targ.magnitude
  1401.                 if mag <= magni and c.Name ~= Player.Name then
  1402.                     hum.Health = 0
  1403.                 end
  1404.             end
  1405.         end
  1406.     end
  1407. end
  1408.     EffectModel = Instance.new("Model", Character)
  1409.     EffectModel.Name = "Effects"
  1410.  
  1411.     BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1412.    
  1413.     local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1414.     prt.Anchored = true
  1415.     prt.CFrame = cframe
  1416.     local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1417.     game:GetService("Debris"):AddItem(prt, 10)
  1418.     if Type == 1 or Type == nil then
  1419.         table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1420.     else
  1421.         if Type == 2 then
  1422.             table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1423.     else
  1424.         if Type == 3 then
  1425.             table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})         
  1426.         end
  1427.     end
  1428. end
  1429. end
  1430.     CreateSound = function(id, par, vol, pit)
  1431.    
  1432.     coroutine.resume(coroutine.create(function()
  1433.        
  1434.         local sou = Instance.new("Sound", par or workspace)
  1435.         sou.Volume = vol
  1436.         sou.Pitch = pit or 1
  1437.         sou.SoundId = id
  1438.         swait()
  1439.         sou:play()
  1440.         game:GetService("Debris"):AddItem(sou, 6)
  1441.     end
  1442. ))
  1443. end
  1444.  
  1445.     Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1446.    
  1447.     local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1448.     prt.Anchored = true
  1449.     prt.CFrame = cframe
  1450.     prt.Material = "Neon"
  1451.     local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1452.     game:GetService("Debris"):AddItem(prt, 10)
  1453.     coroutine.resume(coroutine.create(function(Part, Mesh)
  1454.        
  1455.         for i = 0, 6, delay do
  1456.             swait()
  1457.             Part.Transparency = i
  1458.             Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1459.         end
  1460.         Part.Parent = nil
  1461.     end
  1462. ), prt, msh)
  1463. end
  1464.  
  1465.      shoottraildd = function(mouse, partt, SpreadAmount)
  1466.    
  1467.     local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
  1468.     local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
  1469.     local MainPos2 = mouse + SpreadVectors
  1470.     local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1471.     local speed = 100
  1472.     local num = 1
  1473.     coroutine.resume(coroutine.create(function()
  1474.        
  1475.         repeat
  1476.             swait()
  1477.             local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1478.             local mag = (MainPos - pos).magnitude
  1479.             Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
  1480.             MainPos = MainPos + MouseLook.lookVector * speed
  1481.             num = num - 1
  1482.             MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1483.             if hit ~= nil then
  1484.                 num = 0
  1485.                 local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1486.                 refpart.Anchored = true
  1487.                 refpart.CFrame = CFrame.new(pos)
  1488.                 game:GetService("Debris"):AddItem(refpart, 2)
  1489.             end
  1490.             do
  1491.                 if num <= 0 then
  1492.                     local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1493.                     refpart.Anchored = true
  1494.                     refpart.CFrame = CFrame.new(pos)
  1495.                     if hit ~= nil then
  1496.                        
  1497.                    
  1498.                        
  1499.                         GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
  1500.                         BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
  1501. --                      BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1502. --                      BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1503.                         MagniDamage(refpart, 6, 10, 25, 0, "Slice")
  1504.                     end
  1505.                     game:GetService("Debris"):AddItem(refpart, 0)
  1506.                 end
  1507.             end
  1508.         until num <= 0
  1509.     end
  1510. ))
  1511. end
  1512.  
  1513.     shoottraildd2 = function(mouse, partt, SpreadAmount)
  1514.    
  1515.     local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1516.     local MainPos = partt.Position
  1517.     local MainPos2 = mouse + SpreadVectors
  1518.     local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1519.     local speed = 1000
  1520.     local num = 1
  1521.     coroutine.resume(coroutine.create(function()
  1522.        
  1523.         repeat
  1524.             swait()
  1525.             local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1526.             local mag = (MainPos - pos).magnitude
  1527.             Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
  1528.             MainPos = MainPos + MouseLook.lookVector * speed
  1529.             num = num - 1
  1530.             MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1531.             if hit ~= nil then
  1532.                 num = 0
  1533.                 local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1534.                 refpart.Anchored = true
  1535.                 refpart.CFrame = CFrame.new(pos)
  1536.                 game:GetService("Debris"):AddItem(refpart, 2)
  1537.             end
  1538.             do
  1539.                 if num <= 0 then
  1540.                     local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1541.                     refpart.Anchored = true
  1542.                     refpart.CFrame = CFrame.new(pos)
  1543.                     if hit ~= nil then
  1544.                         CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1545.                         BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  1546.                         BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1547.                         BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1548.                         MagniKILL(refpart, 80, 0, "Normal")
  1549.                     end
  1550.                     game:GetService("Debris"):AddItem(refpart, 0)
  1551.                 end
  1552.             end
  1553.         until num <= 0
  1554.     end
  1555. ))
  1556.     end
  1557.    
  1558.     shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  1559.    
  1560.     local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1561.     local MainPos = partt.Position
  1562.     local MainPos2 = mouse + SpreadVectors
  1563.     local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1564.     local speed = 200
  1565.     local num = 0
  1566.     coroutine.resume(coroutine.create(function()
  1567.        
  1568.         repeat
  1569.             swait()
  1570.             local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1571.             local mag = (MainPos - pos).magnitude
  1572.             Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
  1573.             MainPos = MainPos + MouseLook.lookVector * speed
  1574.             num = num - 1
  1575.             MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1576.             if hit ~= nil then
  1577.                 num = 0
  1578.                 local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1579.                 refpart.Anchored = true
  1580.                 refpart.CFrame = CFrame.new(pos)
  1581.                 BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1582.                 game:GetService("Debris"):AddItem(refpart, 2)
  1583.             end
  1584.             do
  1585.                 if num <= 0 then
  1586.                     local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1587.                     refpart.Anchored = true
  1588.                     refpart.CFrame = CFrame.new(pos)
  1589.                     if hit ~= nil then
  1590.                         CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1591.                         BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1592.                         BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1593.                        
  1594.                            
  1595.                         MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  1596.                        
  1597.                     end
  1598.                     game:GetService("Debris"):AddItem(refpart, 0)
  1599.                 end
  1600.             end
  1601.         until num <= 0
  1602.     end
  1603. ))
  1604.     end
  1605.    
  1606.      shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  1607.    
  1608.     local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1609.     local MainPos = partt.Position
  1610.     local MainPos2 = mouse + SpreadVectors
  1611.     local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1612.     local speed = 150
  1613.     local num = 1
  1614.     coroutine.resume(coroutine.create(function()
  1615.        
  1616.         repeat
  1617.             swait()
  1618.             local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1619.             local mag = (MainPos - pos).magnitude
  1620.             Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
  1621.             MainPos = MainPos + MouseLook.lookVector * speed
  1622.             num = num - 1
  1623.             MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1624.             if hit ~= nil then
  1625.                 num = 0
  1626.                 local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1627.                 refpart.Anchored = true
  1628.                 refpart.CFrame = CFrame.new(pos)
  1629.                 game:GetService("Debris"):AddItem(refpart, 2)
  1630.             end
  1631.             do
  1632.                 if num <= 0 then
  1633.                     local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1634.                     refpart.Anchored = true
  1635.                     refpart.CFrame = CFrame.new(pos)
  1636.                     if hit ~= nil then
  1637.                         CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1638.                         BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1639.                         BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1640.                         BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1641.                         MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  1642.                     end
  1643.                     game:GetService("Debris"):AddItem(refpart, 0)
  1644.                 end
  1645.             end
  1646.         until num <= 0
  1647.     end
  1648. ))
  1649. end
  1650.    
  1651.    
  1652.    
  1653.    
  1654.    
  1655.  
  1656.  
  1657. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  1658.    
  1659. Hitpart3 = Instance.new("Part",HPart3)
  1660. RemoveOutlines(Hitpart3)
  1661. Hitpart3.Size = Vector3.new(1,1,1)
  1662. Hitpart3.CanCollide = false
  1663. HuW3 = Instance.new("Weld")
  1664. HuW3.Name = "GuW"
  1665. HuW3.Part0 = HPart3
  1666. HuW3.C0 = cn(Xv, Yv, Zv)
  1667. HuW3.C1 = cn(0, 0, 0)
  1668. HuW3.Part1 = Hitpart3
  1669. HuW3.Parent = HPart3
  1670. Hitpart3.Transparency = 1
  1671. game:GetService("Debris"):AddItem(Hitpart3, 20)
  1672. end
  1673.  
  1674. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  1675.    
  1676. Hitpart2 = Instance.new("Part",HPart2)
  1677. RemoveOutlines(Hitpart2)
  1678. Hitpart2.Size = Vector3.new(1,1,1)
  1679. Hitpart2.CanCollide = false
  1680. HuW2 = Instance.new("Weld")
  1681. HuW2.Name = "GuW"
  1682. HuW2.Part0 = HPart2
  1683. HuW2.C0 = cn(Xv, Yv, Zv)
  1684. HuW2.C1 = cn(0, 0, 0)
  1685. HuW2.Part1 = Hitpart2
  1686. HuW2.Parent = HPart2
  1687. Hitpart2.Transparency = 1
  1688. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1689. end
  1690.  
  1691.  
  1692. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1693.    
  1694. Hitpart = Instance.new("Part",HPart)
  1695. RemoveOutlines(Hitpart)
  1696. Hitpart.Size = Vector3.new(1,1,1)
  1697. Hitpart.CanCollide = false
  1698. HuW = Instance.new("Weld")
  1699. HuW.Name = "GuW"
  1700. HuW.Part0 = HPart
  1701. HuW.C0 = cn(Xv, Yv, Zv)
  1702. HuW.C1 = cn(0, 0, 0)
  1703. HuW.Part1 = Hitpart
  1704. HuW.Parent = HPart
  1705. Hitpart.Transparency = 1
  1706. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1707. MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
  1708.  
  1709. end
  1710. HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1711.    
  1712. Hitpart4 = Instance.new("Part",HPart)
  1713. RemoveOutlines(Hitpart4)
  1714. Hitpart4.Size = Vector3.new(1,1,1)
  1715. Hitpart4.CanCollide = false
  1716. HuW4 = Instance.new("Weld")
  1717. HuW4.Name = "HuW4"
  1718. HuW4.Part0 = HPart
  1719. HuW4.C0 = cn(Xv, Yv, Zv)
  1720. HuW4.C1 = cn(0, 0, 0)
  1721. HuW4.Part1 = Hitpart4
  1722. HuW4.Parent = HPart
  1723. Hitpart4.Transparency = 1
  1724. game:GetService("Debris"):AddItem(Hitpart4, 1.5)
  1725. MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
  1726.  
  1727. end
  1728.  
  1729.  
  1730. HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
  1731.    
  1732. Hitboxpart = Instance.new("Part",Character)
  1733. RemoveOutlines(Hitboxpart)
  1734. Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
  1735. Hitboxpart.CanCollide = false
  1736. Hitboxpart.Transparency = 1
  1737. Hitboxpart.Anchored = true
  1738. Hitboxpart.CFrame = Pose
  1739. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1740. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1741.  
  1742. end
  1743.  
  1744.  
  1745. wait2 = false
  1746.  
  1747.  
  1748. combo = 1
  1749.  
  1750.  
  1751.  
  1752.  
  1753. duljump = false
  1754. duljump2 = false
  1755. jumpatck = false
  1756.         mouse.KeyDown:connect(function(k)
  1757. if k == "0" then   
  1758. CFuncs['Sound'].Create("rbxassetid://891338458",Character,6,1)
  1759. Runkey = true
  1760. end
  1761. if k == "x" then
  1762. airtime:play()
  1763. end
  1764. if k == "c" then
  1765. CFuncs['Sound'].Create("rbxassetid://892075913",Character,6,1)
  1766. end
  1767. if k == "q" and attack == false then
  1768. attack = true
  1769. Humanoid.WalkSpeed = 0
  1770. IKM = true
  1771. body.BrickColor = BrickColor.new("New Yeller")
  1772. body.Color = Color3.new(1,1,0)
  1773. body.Reflectance = 0
  1774. particle.LightEmission = 0.3
  1775. particle.Texture = "rbxassetid://241629053"
  1776. particle.Color = ColorSequence.new(Color3.new(1,1,0))
  1777. particle.Enabled = true
  1778. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1779. wait(0.1)
  1780. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1781. wait(1)
  1782. particle.Enabled = false
  1783. wait(2)
  1784. Humanoid.WalkSpeed = 30
  1785. attack = false
  1786. end
  1787.  
  1788. if k == "t" and attack == false then
  1789. attack = true
  1790. IKM = false
  1791. Humanoid.WalkSpeed = 0
  1792. body.BrickColor = BrickColor.new("Really red")
  1793. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  1794. body.Reflectance = 0.5
  1795. particle.LightEmission = 0.3
  1796. particle.Texture = "rbxassetid://241629053"
  1797. particle.Color = ColorSequence.new(Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)))
  1798. particle.Enabled = true
  1799. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1800. wait(0.1)
  1801. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1802. wait(1)
  1803. particle.Enabled = false
  1804. wait(2)
  1805. Humanoid.WalkSpeed = 30
  1806. attack = false
  1807. end
  1808.  
  1809. if k == "y" and attack == false then
  1810. attack = true
  1811. IKM = true
  1812. Humanoid.WalkSpeed = 0
  1813. body.BrickColor = BrickColor.new("Really red")
  1814. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  1815. body.Reflectance = 0.5
  1816. particle.LightEmission = 0.9
  1817. particle.Texture = "rbxassetid://280516525"
  1818. particle.Color = ColorSequence.new(ColorsArray)
  1819. particle.Enabled = true
  1820. CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
  1821. wait(0.1)
  1822. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1823. wait(1)
  1824. particle.Enabled = false
  1825. wait(2)
  1826. Humanoid.WalkSpeed = 30
  1827. attack = false
  1828. end
  1829.  
  1830. if k == "r" and attack == false then
  1831. attack = true
  1832. Humanoid.WalkSpeed = 0
  1833. IKM = false
  1834. body.BrickColor = BrickColor.new("Really Blue")
  1835. body.Color = Color3.new(0,0,1)
  1836. body.Reflectance = 0
  1837. particle.LightEmission = 0.3
  1838. particle.Texture = "rbxassetid://241629053"
  1839. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  1840. particle.Enabled = true
  1841. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1842. wait(0.1)
  1843. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1844. wait(1)
  1845. particle.Enabled = false
  1846. wait(2)
  1847. Humanoid.WalkSpeed = 30
  1848. attack = false
  1849. end
  1850.  
  1851.  if k == "e" and attack == false then  
  1852. attack = true
  1853.    
  1854. Humanoid.WalkSpeed = 0 
  1855.  
  1856.                             CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)
  1857.  
  1858. for i = 0, 2, 0.1 do
  1859.         swait()
  1860.  
  1861.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1862.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1863.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1864.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1865.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1866.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1867. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)      
  1868.        
  1869.  
  1870.        
  1871. end
  1872.  
  1873. for i = 0, 4, 0.1 do
  1874.         swait()
  1875.  
  1876.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1877.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1878.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05)
  1879.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05)
  1880.                     RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1881.                     LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1882. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)      
  1883.        
  1884.  
  1885.        
  1886. end
  1887. for i = 0, 1 do
  1888. for i = 0, 1, 0.1 do
  1889.         swait()
  1890.  
  1891.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1892.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1893.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1894.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1895.                     RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1896.                     LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1897. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)      
  1898.        
  1899.  
  1900.        
  1901. end
  1902. for i = 0, 1, 0.1 do
  1903.         swait()
  1904.  
  1905.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1906.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1907.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1908.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1909.                     RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1910.                     LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1911. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)      
  1912.        
  1913.  
  1914.        
  1915. end    
  1916. end
  1917.  
  1918. Humanoid.WalkSpeed = 30
  1919.  
  1920. attack = false
  1921.  
  1922.  
  1923.  
  1924.  
  1925. end
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943. end)   
  1944. hitwait = false
  1945. function onTouch(part)
  1946.  
  1947. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  1948. local model = part.Parent
  1949. local torso = part.Parent:FindFirstChild("Torso")
  1950. local head = part.Parent:findFirstChild("Head")
  1951. local leftleg = part.Parent:findFirstChild("Left Leg")
  1952. local rightleg = part.Parent:findFirstChild("Right Leg")
  1953. local leftarm = part.Parent:findFirstChild("Left Arm")
  1954. local rightarm = part.Parent:findFirstChild("Right Arm")
  1955.  
  1956.     if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
  1957.    
  1958. hitwait = true         
  1959.  
  1960.  
  1961.    
  1962.  
  1963. if (humanoid ~=nil) and humanoid.Health >0.01 and  Torsovelocity > 1 then
  1964.  
  1965.      if IKM == true then
  1966. Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)  
  1967. Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)       
  1968. model:BreakJoints()
  1969. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  1970. local sel = math.random(3)
  1971. if sel == 1 then
  1972. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  1973. end
  1974. if sel == 2 then
  1975. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  1976. end
  1977. if sel == 3 then
  1978. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  1979. end
  1980.    
  1981. else
  1982. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
  1983. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08) 
  1984. MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown")
  1985. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  1986. local sel = math.random(3)
  1987. if sel == 1 then
  1988. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  1989. end
  1990. if sel == 2 then
  1991. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  1992. end
  1993. if sel == 3 then
  1994. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  1995. end
  1996.     end
  1997.  
  1998. attack = true
  1999. Humanoid.WalkSpeed = 0 
  2000.                             local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
  2001.  
  2002.                             game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
  2003.                            
  2004. for i = 0, .5, 0.1 do
  2005.         swait()
  2006.  
  2007.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
  2008.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2009.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  2010.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  2011.                     RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  2012.                     LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  2013. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)      
  2014.        
  2015.  
  2016.        
  2017. end
  2018.  
  2019.    
  2020. Humanoid.WalkSpeed = 30
  2021. end
  2022. attack = false
  2023. wait(.08)
  2024. hitwait = false
  2025.     end
  2026.    
  2027. end
  2028. FrontPart.Touched:connect(onTouch)
  2029.  
  2030.  
  2031.  
  2032.                 mouse.KeyUp:connect(function(k)
  2033. if k == "0"then
  2034. Runkey = false
  2035.  
  2036. end
  2037.  
  2038.  
  2039.            
  2040.        
  2041.  
  2042.  
  2043.                 end)
  2044.                
  2045. humHsave = Humanoid.Health             
  2046. function GainCharge(Humanoid)
  2047. if  Humanoid.Health == 0 then      
  2048.             equipped = false
  2049.             end
  2050. if blocking == true then
  2051.  
  2052. humDsave = Humanoid.Health
  2053. humDsave = humHsave - humDsave
  2054. if humDsave >0.01 then
  2055.  
  2056. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5) 
  2057. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1,              0.02,2) 
  2058. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,          0.02,2)  
  2059. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)  
  2060. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2) 
  2061. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,            0.02,2) 
  2062. humDsave = humDsave/3
  2063. end
  2064. if humDsave <0 then
  2065.  
  2066.  
  2067. Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
  2068. --[[
  2069. BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0,             0.1,2) 
  2070. BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0,          0.1,2) 
  2071. BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.1,2) 
  2072. BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.1,2) 
  2073. BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.1,2) 
  2074. --]]
  2075. humDsave = humDsave*2.5
  2076. end
  2077.  
  2078. humHsave = humHsave - humDsave
  2079.  
  2080.  
  2081.  
  2082.  
  2083. end
  2084.  
  2085. end
  2086.  
  2087.  Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)               
  2088.                
  2089.                
  2090.     OnDeath = function()           
  2091.  
  2092.         equipped = false
  2093.        
  2094.            
  2095.                
  2096.         end    
  2097.            
  2098. Humanoid.Died:connect(function()OnDeath(Character)end)
  2099.  
  2100.                    
  2101.                
  2102.                 print('This masterpiece was totally not created by xiaxiaokid.')
  2103. local music=Instance.new('Sound',inside)
  2104. music.Name='ok music'
  2105. music.Volume=7
  2106. music.Pitch=1
  2107. music.Looped=true
  2108. music.SoundId = "rbxassetid://737286463"
  2109. local gui=Instance.new('ScreenGui',Player.PlayerGui)
  2110. gui.Name='you make me cri'
  2111. local topFrame=Instance.new('Frame',gui)
  2112. topFrame.Name='TopFrame'
  2113. topFrame.Size=UDim2.new(1,0,1,0)
  2114. topFrame.BorderSizePixel=0
  2115. topFrame.BackgroundTransparency=1
  2116. local choiceFrame=Instance.new('Frame',topFrame)
  2117. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  2118. choiceFrame.Draggable=true
  2119. choiceFrame.BackgroundTransparency=.7
  2120. choiceFrame.Position=UDim2.new(.5,0,.775,0)
  2121. choiceFrame.BackgroundColor3=Color3.new(0,0,0)
  2122. choiceFrame.BorderColor3=Color3.new(0,0,0)
  2123. local innerFrame3=Instance.new('Frame',choiceFrame)
  2124. innerFrame3.Size=UDim2.new(.5,0,1,0)
  2125. innerFrame3.Position=UDim2.new(.5,0,0,0)
  2126. innerFrame3.Draggable=true
  2127. innerFrame3.BackgroundTransparency=.9
  2128. innerFrame3.BackgroundColor3=Color3.new(0,0,0)
  2129. innerFrame3.BorderColor3=Color3.new(0,0,0)
  2130. local innerFrame4=Instance.new('Frame',choiceFrame)
  2131. innerFrame4.Size=UDim2.new(.5,0,1,0)
  2132. innerFrame4.Draggable=false
  2133. innerFrame4.BackgroundTransparency=.5
  2134. innerFrame4.Position=UDim2.new(.5,0,1,1)
  2135. innerFrame4.BackgroundColor3=Color3.new(0,0,0)
  2136. innerFrame4.BorderColor3=Color3.new(0,0,0)
  2137. local musicID=Instance.new('TextBox',innerFrame4)
  2138. musicID.Size=UDim2.new(.8,0,.7,0)
  2139. musicID.Position=UDim2.new(.1,0,.15,0)
  2140. musicID.BackgroundTransparency=.7
  2141. musicID.Visible=true
  2142. musicID.Text="Music ID (press enter to use the audio)"
  2143. musicID.TextScaled=true
  2144. musicID.TextStrokeTransparency=0
  2145. musicID.TextColor3=Color3.new(0,255,255)
  2146. musicID.BackgroundColor3=Color3.new(0,0,0)
  2147. musicID.BorderColor3=Color3.new(0,0,0)
  2148. musicID.FocusLost:connect(function(ent)
  2149. if ent then
  2150. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  2151. end
  2152. end)
  2153. local bt3=Instance.new('TextButton',innerFrame3)
  2154. bt3.Draggable=false
  2155. bt3.BackgroundTransparency=.9
  2156. bt3.BackgroundColor3=Color3.new(0,0,0)
  2157. bt3.Size=UDim2.new(.5,0,1,0)
  2158. bt3.Text="Play"
  2159. bt3.TextStrokeTransparency=0
  2160. bt3.TextColor3=Color3.new(0,255,255)
  2161. bt3.TextScaled=true
  2162. bt3.Font="SciFi"
  2163. bt3.MouseButton1Click:connect(function()
  2164. if not music.IsPlaying then
  2165. musicID.Visible=false
  2166. music:play''
  2167. innerFrame4.Visible=false
  2168. end
  2169. end)
  2170. local bt4=Instance.new('TextButton',innerFrame3)
  2171. bt4.Draggable=false
  2172. bt4.BackgroundTransparency=.9
  2173. bt4.BackgroundColor3=Color3.new(0,0,0)
  2174. bt4.Size=UDim2.new(.5,0,1,0)
  2175. bt4.Position=UDim2.new(.5,0,0,0)
  2176. bt4.Text="Stop"
  2177. bt4.TextStrokeTransparency=0
  2178. bt4.TextColor3=Color3.new(0,255,255)
  2179. bt4.TextScaled=true
  2180. bt4.Font="SciFi"
  2181. bt4.MouseButton1Click:connect(function()
  2182. if music.IsPlaying then
  2183. music:stop''
  2184. musicID.Visible=true
  2185. innerFrame4.Visible=true
  2186. end
  2187. end)
  2188. while true do
  2189. swait()
  2190. Humanoid.Name = "fnwihjfbewuhgbewjhgbrjhge"
  2191. Humanoid.MaxHealth = math.huge
  2192. Humanoid.Health = math.huge
  2193. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement