Advertisement
marioisdabomb

Untitled

Nov 30th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.41 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. wait(0.016666666666666666)
  84. Effects = {}
  85. local Player = game.Players.localPlayer
  86. local Character = Player.Character
  87. local sick = Instance.new("Sound",Character)
  88. sick.SoundId = "rbxassetid://294264993"
  89. sick.Looped = true
  90. sick.Pitch = 1
  91. sick.Volume = 4
  92. sick:Play()
  93. local Humanoid = Character.Humanoid
  94. Humanoid.WalkSpeed = 100
  95. local Mouse = Player:GetMouse()
  96. local LeftArm = Character["Left Arm"]
  97. local RightArm = Character["Right Arm"]
  98. local LeftLeg = Character["Left Leg"]
  99. local RightLeg = Character["Right Leg"]
  100. local Head = Character.Head
  101. local Torso = Character.Torso
  102. local Camera = game.Workspace.CurrentCamera
  103. local RootPart = Character.HumanoidRootPart
  104. local RootJoint = RootPart.RootJoint
  105. local attack = false
  106. local Anim = "Idle"
  107. local attacktype = 1
  108. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  109. local velocity = RootPart.Velocity.y
  110. local sine = 0
  111. local change = 1
  112. local Create = LoadLibrary("RbxUtility").Create
  113. Humanoid.Health = math.huge
  114. Instance.new("ForceField", Character).Visible = false
  115. hit = nil
  116. oof = false
  117. for y, t in pairs(Character:GetChildren()) do
  118. end
  119. DHandle = Instance.new("Part")
  120. DMesh = Instance.new("SpecialMesh")
  121. DWeld = Instance.new("Weld")
  122. DHandle.Parent = Character
  123. DHandle.Name = "Handle"
  124. DHandle.CanCollide = false
  125. DHandle.Locked = true
  126. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  127. DMesh.Parent = DHandle
  128. DMesh.Scale = DMesh.Scale
  129. DWeld.Parent = DHandle
  130. DWeld.Name = "no"
  131. DWeld.Part0 = Head
  132. DWeld.Part1 = DHandle
  133. DWeld.C0 = CFrame.new(0, 0.4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-1), 0, 0)
  134. VertexColor = Vector3.new(1, 1, 1)
  135. DHandle.Transparency = 0
  136. DMesh.MeshId = "http://www.roblox.com/asset/?id=0"
  137. DMesh.TextureId = "http://www.roblox.com/asset/?id=0"
  138. local m = Create("Model")({
  139. Parent = Character,
  140. Name = "WeaponModel"
  141. })
  142. Humanoid.Animator.Parent = nil
  143. Character.Animate.Parent = nil
  144. local function newMotor(part0, part1, c0, c1)
  145. local w = Create("Motor")({
  146. Parent = part0,
  147. Part0 = part0,
  148. Part1 = part1,
  149. C0 = c0,
  150. C1 = c1
  151. })
  152. return w
  153. end
  154. function clerp(a, b, t)
  155. return a:lerp(b, t)
  156. end
  157. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  158. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  159. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  160. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  161. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  162. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  163. RootJoint.C1 = CFrame.new(0, 0, 0)
  164. RootJoint.C0 = CFrame.new(0, 0, 0)
  165. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  166. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  167. local rarmc1 = RW.C1
  168. local larmc1 = LW.C1
  169. local rlegc1 = RH.C1
  170. local llegc1 = LH.C1
  171. local resetc1 = false
  172. function PlayAnimationFromTable(table, speed, bool)
  173. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  174. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  175. RW.C0 = clerp(RW.C0, table[3], speed)
  176. LW.C0 = clerp(LW.C0, table[4], speed)
  177. RH.C0 = clerp(RH.C0, table[5], speed)
  178. LH.C0 = clerp(LH.C0, table[6], speed)
  179. if bool == true and resetc1 == false then
  180. resetc1 = true
  181. RootJoint.C1 = RootJoint.C1
  182. Torso.Neck.C1 = Torso.Neck.C1
  183. RW.C1 = rarmc1
  184. LW.C1 = larmc1
  185. RH.C1 = rlegc1
  186. LH.C1 = llegc1
  187. end
  188. end
  189. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  190. script:WaitForChild("Heartbeat")
  191. frame = 0.002
  192. tf = 0
  193. allowframeloss = false
  194. tossremainder = false
  195. lastframe = tick()
  196. script.Heartbeat:Fire()
  197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  198. tf = tf + s
  199. if tf >= frame then
  200. if allowframeloss then
  201. script.Heartbeat:Fire()
  202. lastframe = tick()
  203. else
  204. for i = 1, math.floor(tf / frame) do
  205. script.Heartbeat:Fire()
  206. end
  207. lastframe = tick()
  208. end
  209. if tossremainder then
  210. tf = 0
  211. else
  212. tf = tf - frame * math.floor(tf / frame)
  213. end
  214. end
  215. end)
  216. function swait(num)
  217. if num == 0 or num == nil then
  218. ArtificialHB.Event:wait()
  219. else
  220. for i = 0, num do
  221. ArtificialHB.Event:wait()
  222. end
  223. end
  224. end
  225. function RemoveOutlines(part)
  226. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  227. end
  228. CFuncs = {
  229. Part = {
  230. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  231. local Part = Create("Part")({
  232. Parent = Parent,
  233. Reflectance = Reflectance,
  234. Transparency = Transparency,
  235. CanCollide = false,
  236. Locked = true,
  237. BrickColor = BrickColor.new(tostring(BColor)),
  238. Name = Name,
  239. Size = Size,
  240. Material = Material
  241. })
  242. RemoveOutlines(Part)
  243. if Size == Vector3.new() then
  244. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  245. else
  246. Part.Size = Size
  247. end
  248. return Part
  249. end
  250. },
  251. Mesh = {
  252. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  253. local Msh = Create(Mesh)({
  254. Parent = Part,
  255. Offset = OffSet,
  256. Scale = Scale
  257. })
  258. if Mesh == "SpecialMesh" then
  259. Msh.MeshType = MeshType
  260. Msh.MeshId = MeshId
  261. end
  262. return Msh
  263. end
  264. },
  265. Weld = {
  266. Create = function(Parent, Part0, Part1, C0, C1)
  267. local Weld = Create("Weld")({
  268. Parent = Parent,
  269. Part0 = Part0,
  270. Part1 = Part1,
  271. C0 = C0,
  272. C1 = C1
  273. })
  274. return Weld
  275. end
  276. },
  277. Sound = {
  278. Create = function(id, par, vol, pit)
  279. local Sound = Create("Sound")({
  280. Volume = vol,
  281. Pitch = pit or 1,
  282. SoundId = "rbxassetid://" .. id,
  283. Parent = par or workspace
  284. })
  285. Sound:play()
  286. return Sound
  287. end
  288. },
  289. Decal = {
  290. Create = function(Color, Texture, Transparency, Name, Parent)
  291. local Decal = Create("Decal")({
  292. Color3 = Color,
  293. Texture = "rbxassetid://" .. Texture,
  294. Transparency = Transparency,
  295. Name = Name,
  296. Parent = Parent
  297. })
  298. return Decal
  299. end
  300. },
  301. BillboardGui = {
  302. Create = function(Parent, Image, Position, Size)
  303. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  304. BillPar.CFrame = CFrame.new(Position)
  305. local Bill = Create("BillboardGui")({
  306. Parent = BillPar,
  307. Adornee = BillPar,
  308. Size = UDim2.new(1, 0, 1, 0),
  309. SizeOffset = Vector2.new(Size, Size)
  310. })
  311. local d = Create("ImageLabel", Bill)({
  312. Parent = Bill,
  313. BackgroundTransparency = 1,
  314. Size = UDim2.new(1, 0, 1, 0),
  315. Image = "rbxassetid://" .. Image
  316. })
  317. return BillPar
  318. end
  319. },
  320. ParticleEmitter = {
  321. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  322. local Particle = Create("ParticleEmitter")({
  323. Parent = Parent,
  324. Color = ColorSequence.new(Color1, Color2),
  325. LightEmission = LightEmission,
  326. Size = Size,
  327. Texture = Texture,
  328. Transparency = Transparency,
  329. ZOffset = ZOffset,
  330. Acceleration = Accel,
  331. Drag = Drag,
  332. LockedToPart = LockedToPart,
  333. VelocityInheritance = VelocityInheritance,
  334. EmissionDirection = EmissionDirection,
  335. Enabled = Enabled,
  336. Lifetime = LifeTime,
  337. Rate = Rate,
  338. Rotation = Rotation,
  339. RotSpeed = RotSpeed,
  340. Speed = Speed,
  341. VelocitySpread = VelocitySpread
  342. })
  343. return Particle
  344. end
  345. },
  346. CreateTemplate = {}
  347. }
  348. function rayCast(Position, Direction, Range, Ignore)
  349. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  350. end
  351. function FindNearestTorso(Position, Distance, SinglePlayer)
  352. if SinglePlayer then
  353. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  354. end
  355. local List = {}
  356. for i, v in pairs(workspace:GetChildren()) do
  357. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
  358. table.insert(List, v)
  359. end
  360. end
  361. return List
  362. end
  363. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  364. if hit.Parent == nil then
  365. return
  366. end
  367. local h = hit.Parent:FindFirstChild("Part")
  368. for _, v in pairs(hit.Parent:children()) do
  369. if v:IsA("Part") then
  370. h = v
  371. end
  372. end
  373. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  374. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  375. return
  376. end
  377. local c = Create("ObjectValue")({
  378. Name = "creator",
  379. Value = game:service("Players").LocalPlayer,
  380. Parent = h
  381. })
  382. game:GetService("Debris"):AddItem(c, 0.5)
  383. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  384. local Damage = math.random(minim, maxim)
  385. local blocked = false
  386. local block = hit.Parent:findFirstChild("Block")
  387. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  388. blocked = true
  389. block.Value = block.Value - 1
  390. print(block.Value)
  391. end
  392. if Type == "Knockdown" then
  393. local hum = hit.Parent.Humanoid
  394. hum.PlatformStand = true
  395. coroutine.resume(coroutine.create(function(HHumanoid)
  396. swait(1)
  397. HHumanoid.PlatformStand = false
  398. end), hum)
  399. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  400. local bodvol = Create("BodyVelocity")({
  401. velocity = angle * knockback,
  402. P = 5000,
  403. maxForce = Vector3.new(8000, 8000, 8000),
  404. Parent = hit
  405. })
  406. local rl = Create("BodyAngularVelocity")({
  407. P = 3000,
  408. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  409. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  410. Parent = hit
  411. })
  412. game:GetService("Debris"):AddItem(bodvol, 0.5)
  413. game:GetService("Debris"):AddItem(rl, 0.5)
  414. elseif Type == "Normal" then
  415. local vp = Create("BodyVelocity")({
  416. P = 500,
  417. maxForce = Vector3.new(math.huge, 0, math.huge),
  418. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  419. })
  420. if knockback > 0 then
  421. vp.Parent = hit
  422. hit.Parent = workspace
  423. hit.Anchored = false
  424. hit.CanCollide = false
  425. hit:BreakJoints()
  426. end
  427. game:GetService("Debris"):AddItem(vp, 0.5)
  428. elseif Type == "Up" then
  429. local bodyVelocity = Create("BodyVelocity")({
  430. velocity = Vector3.new(0, 20, 0),
  431. P = 5000,
  432. maxForce = Vector3.new(8000, 8000, 8000),
  433. Parent = hit
  434. })
  435. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  436. elseif Type == "DarkUp" then
  437. coroutine.resume(coroutine.create(function()
  438. for i = 0, 1, 0.1 do
  439. swait()
  440. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  441. end
  442. end))
  443. local bodyVelocity = Create("BodyVelocity")({
  444. velocity = Vector3.new(0, 20, 0),
  445. P = 5000,
  446. maxForce = Vector3.new(8000, 8000, 8000),
  447. Parent = hit
  448. })
  449. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  450. elseif Type == "Snare" then
  451. local bp = Create("BodyPosition")({
  452. P = 2000,
  453. D = 100,
  454. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  455. position = hit.Parent.Torso.Position,
  456. Parent = hit.Parent.Torso
  457. })
  458. game:GetService("Debris"):AddItem(bp, 1)
  459. elseif Type == "Freeze" then
  460. local BodPos = Create("BodyPosition")({
  461. P = 50000,
  462. D = 1000,
  463. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  464. position = hit.Parent.Torso.Position,
  465. Parent = hit.Parent.Torso
  466. })
  467. local BodGy = Create("BodyGyro")({
  468. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  469. P = 20000,
  470. Parent = hit.Parent.Torso,
  471. cframe = hit.Parent.Torso.CFrame
  472. })
  473. hit.Parent.Torso.Anchored = true
  474. coroutine.resume(coroutine.create(function(Part)
  475. swait(1.5)
  476. Part.Anchored = false
  477. end), hit.Parent.Torso)
  478. game:GetService("Debris"):AddItem(BodPos, 3)
  479. game:GetService("Debris"):AddItem(BodGy, 3)
  480. end
  481. local debounce = Create("BoolValue")({
  482. Name = "DebounceHit",
  483. Parent = hit.Parent,
  484. Value = true
  485. })
  486. game:GetService("Debris"):AddItem(debounce, Delay)
  487. c = Create("ObjectValue")({
  488. Name = "creator",
  489. Value = Player,
  490. Parent = h
  491. })
  492. game:GetService("Debris"):AddItem(c, 0.5)
  493. end
  494. end
  495. function ShowDamage(Pos, Text, Time, Color)
  496. local Rate = 0.03333333333333333
  497. local Pos = Pos or Vector3.new(0, 0, 0)
  498. local Text = Text or ""
  499. local Time = Time or 2
  500. local Color = Color or Color3.new(1, 0, 1)
  501. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  502. EffectPart.Anchored = true
  503. local BillboardGui = Create("BillboardGui")({
  504. Size = UDim2.new(3, 0, 3, 0),
  505. Adornee = EffectPart,
  506. Parent = EffectPart
  507. })
  508. local TextLabel = Create("TextLabel")({
  509. BackgroundTransparency = 1,
  510. Size = UDim2.new(1, 0, 1, 0),
  511. Text = Text,
  512. Font = "Garamond",
  513. TextColor3 = Torso.Color,
  514. TextScaled = true,
  515. Parent = BillboardGui
  516. })
  517. game.Debris:AddItem(EffectPart, Time)
  518. EffectPart.Parent = game:GetService("Workspace")
  519. delay(0, function()
  520. local Frames = Time / Rate
  521. for Frame = 1, Frames do
  522. wait(Rate)
  523. local Percent = Frame / Frames
  524. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  525. TextLabel.TextTransparency = Percent
  526. end
  527. if EffectPart and EffectPart.Parent then
  528. EffectPart:Destroy()
  529. end
  530. end)
  531. end
  532. sound = Instance.new("Sound", Character)
  533. sound.SoundId = "rbxassetid://1101468563"
  534. sound.Volume = 0
  535. sound.EmitterSize = 25
  536. sound:Play()
  537. sound.Looped = true
  538. CV = "Maroon"
  539. Player = game.Players.LocalPlayer
  540. char = Player.Character
  541. local txt = Instance.new("BillboardGui", Character)
  542. txt.Adornee = Character.Head
  543. txt.Name = "_status"
  544. txt.Size = UDim2.new(2, 0, 1.2, 0)
  545. txt.StudsOffset = Vector3.new(-9, 8, 0)
  546. local text = Instance.new("TextLabel", txt)
  547. text.Size = UDim2.new(10, 0, 7, 0)
  548. text.FontSize = "Size24"
  549. text.TextScaled = true
  550. text.TextTransparency = 0
  551. text.BackgroundTransparency = 1
  552. text.TextTransparency = 0
  553. text.TextStrokeTransparency = 1
  554. text.Font = "Cartoon"
  555. v = Instance.new("Part")
  556. v.Name = "ColorBrick"
  557. v.Parent = Player.Character
  558. v.FormFactor = "Symmetric"
  559. v.Anchored = true
  560. v.CanCollide = false
  561. v.BottomSurface = "Smooth"
  562. v.TopSurface = "Smooth"
  563. v.Size = Vector3.new(10, 5, 3)
  564. v.Transparency = 1
  565. v.CFrame = Character.Torso.CFrame
  566. v.BrickColor = BrickColor.new(CV)
  567. v.Transparency = 1
  568. touchCounter = 0
  569. local cR=255
  570. local cG=0
  571. local cB=0
  572. local flg5=1 local omgidk=1
  573. local add=15
  574. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  575. if omgidk>10000 then omgidk=0 end
  576. omgidk=omgidk+1
  577. if cR>=255 then flg5=1 end
  578. if cG>=255 then flg5=2 end
  579. if cB>=255 then flg5=3 end
  580. if flg5==1 then cR=cR-add cG=cG+add end
  581. if flg5==2 then cG=cG-add cB=cB+add end
  582. if flg5==3 then cB=cB-add cR=cR+add end
  583. color=Color3.fromRGB(cR,cG,cB)
  584. text.TextColor3 = color
  585. end)
  586. v.Shape = "Block"
  587. text.Text = "minecraft shovel hack"
  588. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  589. for _, c in pairs(workspace:children()) do
  590. local hum = c:findFirstChild("Humanoid")
  591. if hum ~= nil then
  592. local head = hit
  593. if head ~= nil then
  594. local targ = head.Position - Part.Position
  595. local mag = targ.magnitude
  596. if Magnitude >= mag and c.Name ~= Player.Name then
  597. CFuncs.Sound.Create("324867021", head, 1, 1)
  598. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  599. end
  600. end
  601. end
  602. end
  603. end
  604. Handle = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 1, "Bright green", "Handle", Vector3.new(1, 1.20000005, 1))
  605. HandleWeld = CFuncs.Weld.Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.435136795, -0.716373444, -0.168147802, -0.184279382, -0.967371345, 0.173878923, -0.0978992507, -0.157963246, -0.982580066, 0.977986097, -0.198091835, -0.0655955523))
  606. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part", Vector3.new(1, 1.20000005, 1))
  607. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-8.36849213E-5, 4.00039482, -5.86509705E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6))
  608. CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 1, 0.0500000007))
  609. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part1", Vector3.new(1, 1.20000005, 1))
  610. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.67979431E-5, -4.00035858, 0.499849081, -0.999994338, 5.56639861E-6, 1.65775418E-6, 5.24974894E-6, 0.999995232, -5.0291419E-6, -3.25776637E-6, -5.08874655E-6, -0.999990761))
  611. CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0500000007, 1, 0.600000024))
  612. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part2", Vector3.new(1, 1.20000005, 1))
  613. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.17232513E-5, 3.20031929, -3.71932983E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6))
  614. CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  615. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part3", Vector3.new(1, 1.20000005, 1))
  616. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.48905945E-5, -4.00033379, 0.499926567, 1, -5.21628408E-6, -3.65823939E-6, 5.21626544E-6, 1, -5.09625352E-6, 3.658266E-6, 5.09623442E-6, 1))
  617. CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0500000007, 1, 0.600000024))
  618. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part4", Vector3.new(1, 1.20000005, 1))
  619. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.74724579E-5, 2.90030861, -2.95639038E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6))
  620. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  621. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part5", Vector3.new(1, 1.20000005, 1))
  622. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0976924896, -1.42856026, 1.57356262E-5, 3.90782952E-6, 0.275675088, -0.961250901, 5.61308116E-6, -0.96125102, -0.275675088, -1.00000012, -4.33286186E-6, -5.2973628E-6))
  623. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003))
  624. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part6", Vector3.new(1, 1.20000005, 1))
  625. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.93119049E-5, -0.700065613, 1.33514404E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6))
  626. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 0.5))
  627. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part7", Vector3.new(1, 1.20000005, 1))
  628. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0726666451, 1.43006897, 1.62124634E-5, -5.01610339E-6, 0.258840203, 0.96592015, -3.55858356E-6, 0.96592021, -0.258840173, -1.00000012, -4.73321415E-6, -3.92459333E-6))
  629. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003))
  630. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part8", Vector3.new(1, 1.20000005, 1))
  631. PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.14848328E-5, 4.36306E-5, 2.00019836, 1, -5.38327731E-6, -2.46055424E-6, -2.4586916E-6, 8.36700201E-6, -1, 5.40760811E-6, 1, 8.37445259E-6))
  632. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003))
  633. Shaft = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "Brown", "Shaft", Vector3.new(0.3, 3.60000014, 0.3))
  634. ShaftWeld = CFuncs.Weld.Create(m, Handle, Shaft, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.21729279E-5, 1.20008087, -2.24113464E-5, 3.14228237E-6, 4.38094139E-6, -1.00000012, 2.94635538E-6, -1, -4.38839197E-6, -1, -2.95066275E-6, -3.14228237E-6))
  635. Hitbox = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Hitbox", Vector3.new(7, 3, 3))
  636. HitboxWeld = CFuncs.Weld.Create(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.19377899, -0.184207916, -0.14117223, -5.3447485E-4, 0.99471724, -0.102652542, -0.999858558, 0.00119461119, 0.0167820305, 0.0168160032, 0.102646977, 0.994575679))
  637. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  638. sref.Anchored = true
  639. local cR=255
  640. local cG=0
  641. local cB=0
  642. local flg5=1 local omgidk=1
  643. local add=15
  644. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  645. if omgidk>10000 then omgidk=0 end
  646. omgidk=omgidk+1
  647. if cR>=255 then flg5=1 end
  648. if cG>=255 then flg5=2 end
  649. if cB>=255 then flg5=3 end
  650. if flg5==1 then cR=cR-add cG=cG+add end
  651. if flg5==2 then cG=cG-add cB=cB+add end
  652. if flg5==3 then cB=cB-add cR=cR+add end
  653. color=Color3.fromRGB(cR,cG,cB)
  654. local d = Character.WeaponModel
  655. d.Shaft.Color = color
  656. d.Part.Color = color
  657. d.Part1.Color = color
  658. d.Part2.Color = color
  659. d.Part3.Color = color
  660. d.Part4.Color = color
  661. d.Part5.Color = color
  662. d.Part6.Color = color
  663. d.Part7.Color = color
  664. d.Part8.Color = color
  665. d.Part.Material = Enum.Material.Neon
  666. d.Part1.Material = Enum.Material.Neon
  667. d.Part2.Material = Enum.Material.Neon
  668. d.Part3.Material = Enum.Material.Neon
  669. d.Part4.Material = Enum.Material.Neon
  670. d.Part5.Material = Enum.Material.Neon
  671. d.Part6.Material = Enum.Material.Neon
  672. d.Part7.Material = Enum.Material.Neon
  673. d.Part8.Material = Enum.Material.Neon
  674. end)
  675. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  676. Effects = {
  677. Block = {
  678. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  679. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  680. prt.Anchored = true
  681. prt.CFrame = cframe
  682. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  683. game:GetService("Debris"):AddItem(prt, 10)
  684. if Type == 1 or Type == nil then
  685. table.insert(Effects, {
  686. prt,
  687. "Block1",
  688. delay,
  689. x3,
  690. y3,
  691. z3,
  692. msh
  693. })
  694. elseif Type == 2 then
  695. table.insert(Effects, {
  696. prt,
  697. "Block2",
  698. delay,
  699. x3,
  700. y3,
  701. z3,
  702. msh
  703. })
  704. end
  705. end
  706. },
  707. Cylinder = {
  708. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  709. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  710. prt.Anchored = true
  711. prt.CFrame = cframe
  712. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  713. game:GetService("Debris"):AddItem(prt, 2)
  714. table.insert(Effects, {
  715. prt,
  716. "Cylinder",
  717. delay,
  718. x3,
  719. y3,
  720. z3,
  721. msh
  722. })
  723. end
  724. },
  725. Head = {
  726. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  727. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  728. prt.Anchored = true
  729. prt.CFrame = cframe
  730. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  731. game:GetService("Debris"):AddItem(prt, 10)
  732. table.insert(Effects, {
  733. prt,
  734. "Cylinder",
  735. delay,
  736. x3,
  737. y3,
  738. z3,
  739. msh
  740. })
  741. end
  742. },
  743. Sphere = {
  744. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  745. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  746. prt.Anchored = true
  747. prt.CFrame = cframe
  748. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  749. game:GetService("Debris"):AddItem(prt, 10)
  750. table.insert(Effects, {
  751. prt,
  752. "Cylinder",
  753. delay,
  754. x3,
  755. y3,
  756. z3,
  757. msh
  758. })
  759. end
  760. },
  761. Elect = {
  762. Create = function(cff, x, y, z)
  763. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  764. prt.Anchored = true
  765. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  766. prt.CFrame = CFrame.new(prt.Position)
  767. game:GetService("Debris"):AddItem(prt, 2)
  768. local xval = math.random() / 2
  769. local yval = math.random() / 2
  770. local zval = math.random() / 2
  771. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  772. table.insert(Effects, {
  773. prt,
  774. "Elec",
  775. 0.1,
  776. x,
  777. y,
  778. z,
  779. xval,
  780. yval,
  781. zval
  782. })
  783. end
  784. },
  785. Ring = {
  786. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  787. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  788. prt.Anchored = true
  789. prt.CFrame = cframe
  790. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  791. game:GetService("Debris"):AddItem(prt, 10)
  792. table.insert(Effects, {
  793. prt,
  794. "Cylinder",
  795. delay,
  796. x3,
  797. y3,
  798. z3,
  799. msh
  800. })
  801. end
  802. },
  803. Wave = {
  804. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  805. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  806. prt.Anchored = true
  807. prt.CFrame = cframe
  808. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  809. game:GetService("Debris"):AddItem(prt, 10)
  810. table.insert(Effects, {
  811. prt,
  812. "Cylinder",
  813. delay,
  814. x3,
  815. y3,
  816. z3,
  817. msh
  818. })
  819. end
  820. },
  821. Break = {
  822. Create = function(brickcolor, cframe, x1, y1, z1)
  823. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  824. prt.Anchored = true
  825. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  826. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  827. local num = math.random(10, 50) / 1000
  828. game:GetService("Debris"):AddItem(prt, 10)
  829. table.insert(Effects, {
  830. prt,
  831. "Shatter",
  832. num,
  833. prt.CFrame,
  834. math.random() - math.random(),
  835. 0,
  836. math.random(50, 100) / 100
  837. })
  838. end
  839. },
  840. Fire = {
  841. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  842. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  843. prt.Anchored = true
  844. prt.CFrame = cframe
  845. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  846. game:GetService("Debris"):AddItem(prt, 10)
  847. table.insert(Effects, {
  848. prt,
  849. "Fire",
  850. delay,
  851. 1,
  852. 1,
  853. 1,
  854. msh
  855. })
  856. end
  857. },
  858. FireWave = {
  859. Create = function(brickcolor, cframe, x1, y1, z1)
  860. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  861. prt.Anchored = true
  862. prt.CFrame = cframe
  863. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  864. local d = Create("Decal")({
  865. Parent = prt,
  866. Texture = "rbxassetid://26356434",
  867. Face = "Top"
  868. })
  869. local d = Create("Decal")({
  870. Parent = prt,
  871. Texture = "rbxassetid://26356434",
  872. Face = "Bottom"
  873. })
  874. game:GetService("Debris"):AddItem(prt, 10)
  875. table.insert(Effects, {
  876. prt,
  877. "FireWave",
  878. 1,
  879. 30,
  880. math.random(400, 600) / 100,
  881. msh
  882. })
  883. end
  884. },
  885. Lightning = {
  886. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  887. local magz = (p0 - p1).magnitude
  888. local curpos = p0
  889. local trz = {
  890. -ofs,
  891. ofs
  892. }
  893. for i = 1, tym do
  894. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  895. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  896. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  897. li.Material = "Neon"
  898. if tym == i then
  899. local magz2 = (curpos - p1).magnitude
  900. li.Size = Vector3.new(th, th, magz2)
  901. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  902. table.insert(Effects, {
  903. li,
  904. "Disappear",
  905. last
  906. })
  907. else
  908. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  909. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  910. game.Debris:AddItem(li, 10)
  911. table.insert(Effects, {
  912. li,
  913. "Disappear",
  914. last
  915. })
  916. end
  917. end
  918. end
  919. },
  920. EffectTemplate = {}
  921. }
  922. function ears()
  923. local quote = math.random(1, 10)
  924. if quote == 1 then
  925. ow = CFuncs.Sound.Create("276916733", Character, 10, 1)
  926. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  927. elseif quote == 2 then
  928. ow = CFuncs.Sound.Create("222045669", Character, 10, 1)
  929. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  930. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "I played college ball yaknow", 1.5, BrickColor.new("Grey").Color)
  931. elseif quote == 3 then
  932. ow = CFuncs.Sound.Create("657527128", Character, 10, 1)
  933. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  934. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "Oof", 1.5, BrickColor.new("Grey").Color)
  935. elseif quote == 4 then
  936. CFuncs.Sound.Create("230292394", Character, 10, 1)
  937. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "AAAAAH", 1.5, BrickColor.new("Grey").Color)
  938. elseif quote == 5 then
  939. CFuncs.Sound.Create("230255621", Character, 10, 1)
  940. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "SO", 1.5, BrickColor.new("Grey").Color)
  941. wait(0.2)
  942. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "DAH", 1.5, BrickColor.new("Grey").Color)
  943. elseif quote == 6 then
  944. CFuncs.Sound.Create("230255698", Character, 10, 1)
  945. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "Y E S", 1.5, BrickColor.new("Grey").Color)
  946. elseif quote == 7 then
  947. CFuncs.Sound.Create("230255738", Character, 10, 1)
  948. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "OH", 1.5, BrickColor.new("Grey").Color)
  949. elseif quote == 8 then
  950. CFuncs.Sound.Create("230292118", Character, 10, 1)
  951. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "AAAAAAAA", 1.5, BrickColor.new("Grey").Color)
  952. elseif quote == 9 then
  953. CFuncs.Sound.Create("230292073", Character, 10, 1)
  954. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "UWEEEEEEEEEEH", 1.5, BrickColor.new("Grey").Color)
  955. elseif quote == 10 then
  956. ow = CFuncs.Sound.Create("225279648", Character, 10, 1)
  957. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  958. ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "help", 1.5, BrickColor.new("Grey").Color)
  959. end
  960. end
  961. function joj()
  962. while oof == true do
  963. attack = true
  964. local con = Hitbox.Touched:connect(function(hit)
  965. Damage(Hitbox, hit, 0, 0, math.random(300, 300), "Normal", RootPart, 0.1, "146163534", 1)
  966. end)
  967. CFuncs.Sound.Create("1102186681", Hitbox, 10, 1)
  968. for i = 0, 1, 0.1 do
  969. swait()
  970. PlayAnimationFromTable({
  971. CFrame.new(0.318533748, 1.11758709E-8, -0.186876655, 0.571150839, -0.107324705, 0.813798547, -0.321393877, 0.883022606, 0.342018932, -0.755309701, -0.456894249, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  972. CFrame.new(-0.136643112, 1.46224117, -0.102674514, 0.571150839, -0.321393877, -0.755309701, -0.107324705, 0.883022606, -0.456894249, 0.813798547, 0.342018932, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  973. CFrame.new(1.34420753, 1.19733691, -0.575926542, -0.0377464592, -0.0365618169, 0.998618245, -0.0365605801, -0.998610795, -0.0379435122, 0.998618245, -0.0379423201, 0.0363572836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  974. CFrame.new(-1.54852927, 1.0183481, -0.403962731, 0.992945313, -0.0193823874, 0.11697869, 0.0193829238, -0.946746707, -0.321395338, 0.116978586, 0.321395338, -0.93969202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  975. CFrame.new(1.30056286, -1.52663183, -0.684036016, 0.872286201, -0.321393877, -0.368541837, 0.13550131, 0.883022606, -0.449344397, 0.469847292, 0.342018932, 0.813797712) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  976. CFrame.new(-0.0819230229, -1.98630714, -0.796365142, 0.843013644, -0.321393877, 0.431316614, 0.431316495, 0.883022606, -0.185032547, -0.321394026, 0.342018932, 0.883022547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  977. }, 0.3, false)
  978. end
  979. for i = 0, 1, 0.1 do
  980. swait()
  981. PlayAnimationFromTable({
  982. CFrame.new(-0.70452857, 1.34110451E-7, -0.85472101, 0.0479760207, 0.375900865, -0.925417125, -0.321394145, 0.883022726, 0.342018545, 0.945729494, 0.281014919, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  983. CFrame.new(-0.332258016, 1.42813265, -0.198432297, 0.0479760207, -0.321394145, 0.945729494, 0.375900865, 0.883022726, 0.281014919, -0.925417125, 0.342018545, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  984. CFrame.new(1.3427434, 0.740131199, -1.01291919, 0.0505371541, -0.0144109726, 0.998618364, 0.883102953, 0.467642725, -0.0379427671, -0.466449738, 0.883800209, 0.0363596678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  985. CFrame.new(-1.46270001, 0.38253215, -1.0271579, 0.992945492, -0.11697793, -0.01938124, 0.0193838775, 0.321395963, -0.946746528, 0.116977483, 0.939691901, 0.321396172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  986. CFrame.new(1.30056417, -1.52663159, -0.684035659, 0.872286379, -0.321394145, -0.368541002, 0.1355021, 0.883022726, -0.449344009, 0.469846606, 0.342018545, 0.813798249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  987. CFrame.new(-0.0819211155, -1.98630702, -0.796365023, 0.84301424, -0.321394145, 0.431315303, 0.431316257, 0.883022726, -0.18503274, -0.321392775, 0.342018545, 0.883023262) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  988. }, 0.3, false)
  989. end
  990. con:Disconnect()
  991. attack = false
  992. end
  993. end
  994. Mouse.Button1Down:connect(function()
  995. if attack == false and oof == false then
  996. oof = true
  997. joj()
  998. end
  999. end)
  1000. Mouse.Button1Up:connect(function()
  1001. if attack == true and oof == true then
  1002. oof = false
  1003. end
  1004. end)
  1005. Mouse.KeyDown:connect(function(k)
  1006. k = k:lower()
  1007. if k == "t" then
  1008. ears()
  1009. end
  1010. end)
  1011. while true do
  1012. swait()
  1013. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1014. for i, v in pairs(Character:GetChildren()) do
  1015. if v:IsA("Part") then
  1016. v.Material = "SmoothPlastic"
  1017. elseif v:IsA("Accessory") then
  1018. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1019. end
  1020. end
  1021. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1022. velocity = RootPart.Velocity.y
  1023. sine = sine + change
  1024. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1025. if RootPart.Velocity.y > 1 and hit == nil then
  1026. Anim = "Jump"
  1027. if attack == false then
  1028. PlayAnimationFromTable({
  1029. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1030. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, 0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1031. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1032. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1033. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392E-7, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1034. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1035. }, 0.3, false)
  1036. end
  1037. elseif RootPart.Velocity.y < -1 and hit == nil then
  1038. Anim = "Fall"
  1039. if attack == false then
  1040. PlayAnimationFromTable({
  1041. CFrame.new(0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1044. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1045. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1046. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1047. }, 0.3, false)
  1048. end
  1049. elseif Torsovelocity < 1 and hit ~= nil then
  1050. Anim = "Idle"
  1051. if attack == false then
  1052. change = 1
  1053. PlayAnimationFromTable({
  1054. CFrame.new(1.90734863E-6, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1055. CFrame.new(-1.90734863E-6, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1056. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1057. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, 0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1058. CFrame.new(0.699996471, -1.87938261, -0.684038877, 0.866025388, 0, -0.500000238, -0.171010032, 0.939692736, -0.296197921, 0.469846606, 0.342019886, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1059. CFrame.new(-0.756342053, -1.83849907, -0.79636544, 0.939692736, 0, 0.342019886, 0.116977625, 0.939692736, -0.321393639, -0.321393639, 0.342019886, 0.883022428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1060. }, 0.3, false)
  1061. end
  1062. elseif Torsovelocity > 2 and hit ~= nil then
  1063. Anim = "Walk"
  1064. if attack == false then
  1065. change = 2
  1066. PlayAnimationFromTable({
  1067. CFrame.new(1.90734863E-6, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1068. CFrame.new(-1.90734863E-6, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1069. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1070. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, 0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(0.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1072. CFrame.new(-0.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0))
  1073. }, 0.3, false)
  1074. end
  1075. end
  1076. if 0 < #Effects then
  1077. for e = 1, #Effects do
  1078. if Effects[e] ~= nil then
  1079. local Thing = Effects[e]
  1080. if Thing ~= nil then
  1081. local Part = Thing[1]
  1082. local Mode = Thing[2]
  1083. local Delay = Thing[3]
  1084. local IncX = Thing[4]
  1085. local IncY = Thing[5]
  1086. local IncZ = Thing[6]
  1087. if Thing[2] == "Shoot" then
  1088. local Look = Thing[1]
  1089. local move = 5
  1090. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1091. if Thing[10] ~= nil then
  1092. da = pos
  1093. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1094. cfa = CFrame.new(Thing[4], pos)
  1095. tehCF = cfa:lerp(cf2, 0.2)
  1096. Thing[1] = tehCF.lookVector
  1097. end
  1098. local mag = (Thing[4] - pos).magnitude
  1099. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1100. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
  1101. Thing[4] = Thing[4] + Look * move
  1102. Thing[3] = Thing[3] - 1
  1103. if 2 < Thing[5] then
  1104. Thing[5] = Thing[5] - 0.3
  1105. Thing[6] = Thing[6] - 0.3
  1106. end
  1107. if hit ~= nil then
  1108. Thing[3] = 0
  1109. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1110. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1111. ref.Anchored = true
  1112. ref.CFrame = CFrame.new(pos)
  1113. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, 0.05)
  1114. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1115. game:GetService("Debris"):AddItem(ref, 1)
  1116. end
  1117. end
  1118. end
  1119. end
  1120. end
  1121. end
  1122. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement