Advertisement
rcubed1003

car + radio

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