Advertisement
SomeRandomSkid

FE Bumper Car

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