Hugo1234cool

Untitled

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