Advertisement
samuelrichter66

A REAL FUCKING CAR HOLY SHIT!!! script

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