Advertisement
DarkScriptZEditors

Untitled

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