Advertisement
waconline

car bumper

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