Advertisement
Void_scripter0

car

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