Advertisement
Christoffer07700Extr

a minecraft pro but with a rainbow shovel

Aug 6th, 2019
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.67 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running...")
  167.  
  168.  
  169. wait(0.016666666666666666)
  170. Effects = {}
  171. local s = Instance.new("Sound")
  172.  
  173. s.Name = "Sound"
  174. s.SoundId = "http://www.roblox.com/asset/?id=261558095"
  175. s.Volume = 5
  176. s.Looped = true
  177. s.archivable = true
  178.  
  179. s.Parent = game.Workspace
  180.  
  181. wait(3)
  182.  
  183. s:play()
  184. local Player = game.Players.localPlayer
  185. local Character = Player.Character
  186. local Humanoid = Character.Humanoid
  187. Humanoid.WalkSpeed = 100
  188. local Mouse = Player:GetMouse()
  189. local LeftArm = Character["Left Arm"]
  190. local RightArm = Character["Right Arm"]
  191. local LeftLeg = Character["Left Leg"]
  192. local RightLeg = Character["Right Leg"]
  193. local Head = Character.Head
  194. local Torso = Character.Torso
  195. local Camera = game.Workspace.CurrentCamera
  196. local RootPart = Character.HumanoidRootPart
  197. local RootJoint = RootPart.RootJoint
  198. local attack = false
  199. local Anim = "Idle"
  200. local attacktype = 1
  201. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  202. local velocity = RootPart.Velocity.y
  203. local sine = 0
  204. local change = 1
  205. local Create = LoadLibrary("RbxUtility").Create
  206. Humanoid.Health = math.huge
  207. Instance.new("ForceField", Character).Visible = false
  208. hit = nil
  209. oof = false
  210. for y, t in pairs(Character:GetChildren()) do
  211. end
  212. DHandle = Instance.new("Part")
  213. DMesh = Instance.new("SpecialMesh")
  214. DWeld = Instance.new("Weld")
  215. DHandle.Parent = Character
  216. DHandle.Name = "Handle"
  217. DHandle.CanCollide = false
  218. DHandle.Locked = true
  219. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  220. DMesh.Parent = DHandle
  221. DMesh.Scale = DMesh.Scale
  222. DWeld.Parent = DHandle
  223. DWeld.Name = "no"
  224. DWeld.Part0 = Head
  225. DWeld.Part1 = DHandle
  226. DWeld.C0 = CFrame.new(0, 0.4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-1), 0, 0)
  227. VertexColor = Vector3.new(1, 1, 1)
  228. DHandle.Transparency = 0
  229. DMesh.MeshId = "http://www.roblox.com/asset/?id=0"
  230. DMesh.TextureId = "http://www.roblox.com/asset/?id=0"
  231. local m = Create("Model")({
  232. Parent = Character,
  233. Name = "WeaponModel"
  234. })
  235. Humanoid.Animator.Parent = nil
  236. Character.Animate.Parent = nil
  237. local function newMotor(part0, part1, c0, c1)
  238. local w = Create("Motor")({
  239. Parent = part0,
  240. Part0 = part0,
  241. Part1 = part1,
  242. C0 = c0,
  243. C1 = c1
  244. })
  245. return w
  246. end
  247. function clerp(a, b, t)
  248. return a:lerp(b, t)
  249. end
  250. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  251. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  252. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  253. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  254. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  255. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  256. RootJoint.C1 = CFrame.new(0, 0, 0)
  257. RootJoint.C0 = CFrame.new(0, 0, 0)
  258. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  259. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  260. local rarmc1 = RW.C1
  261. local larmc1 = LW.C1
  262. local rlegc1 = RH.C1
  263. local llegc1 = LH.C1
  264. local resetc1 = false
  265. function PlayAnimationFromTable(table, speed, bool)
  266. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  267. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  268. RW.C0 = clerp(RW.C0, table[3], speed)
  269. LW.C0 = clerp(LW.C0, table[4], speed)
  270. RH.C0 = clerp(RH.C0, table[5], speed)
  271. LH.C0 = clerp(LH.C0, table[6], speed)
  272. if bool == true and resetc1 == false then
  273. resetc1 = true
  274. RootJoint.C1 = RootJoint.C1
  275. Torso.Neck.C1 = Torso.Neck.C1
  276. RW.C1 = rarmc1
  277. LW.C1 = larmc1
  278. RH.C1 = rlegc1
  279. LH.C1 = llegc1
  280. end
  281. end
  282. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  283. script:WaitForChild("Heartbeat")
  284. frame = 0.002
  285. tf = 0
  286. allowframeloss = false
  287. tossremainder = false
  288. lastframe = tick()
  289. script.Heartbeat:Fire()
  290. game:GetService("RunService").Heartbeat:connect(function(s, p)
  291. tf = tf + s
  292. if tf >= frame then
  293. if allowframeloss then
  294. script.Heartbeat:Fire()
  295. lastframe = tick()
  296. else
  297. for i = 1, math.floor(tf / frame) do
  298. script.Heartbeat:Fire()
  299. end
  300. lastframe = tick()
  301. end
  302. if tossremainder then
  303. tf = 0
  304. else
  305. tf = tf - frame * math.floor(tf / frame)
  306. end
  307. end
  308. end)
  309. function swait(num)
  310. if num == 0 or num == nil then
  311. ArtificialHB.Event:wait()
  312. else
  313. for i = 0, num do
  314. ArtificialHB.Event:wait()
  315. end
  316. end
  317. end
  318. function RemoveOutlines(part)
  319. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  320. end
  321. CFuncs = {
  322. Part = {
  323. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  324. local Part = Create("Part")({
  325. Parent = Parent,
  326. Reflectance = Reflectance,
  327. Transparency = Transparency,
  328. CanCollide = false,
  329. Locked = true,
  330. BrickColor = BrickColor.new(tostring(BColor)),
  331. Name = Name,
  332. Size = Size,
  333. Material = Material
  334. })
  335. RemoveOutlines(Part)
  336. if Size == Vector3.new() then
  337. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  338. else
  339. Part.Size = Size
  340. end
  341. return Part
  342. end
  343. },
  344. Mesh = {
  345. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  346. local Msh = Create(Mesh)({
  347. Parent = Part,
  348. Offset = OffSet,
  349. Scale = Scale
  350. })
  351. if Mesh == "SpecialMesh" then
  352. Msh.MeshType = MeshType
  353. Msh.MeshId = MeshId
  354. end
  355. return Msh
  356. end
  357. },
  358. Weld = {
  359. Create = function(Parent, Part0, Part1, C0, C1)
  360. local Weld = Create("Weld")({
  361. Parent = Parent,
  362. Part0 = Part0,
  363. Part1 = Part1,
  364. C0 = C0,
  365. C1 = C1
  366. })
  367. return Weld
  368. end
  369. },
  370. Sound = {
  371. Create = function(id, par, vol, pit)
  372. local Sound = Create("Sound")({
  373. Volume = vol,
  374. Pitch = pit or 1,
  375. SoundId = "rbxassetid://" .. id,
  376. Parent = par or workspace
  377. })
  378. Sound:play()
  379.  
  380. end
  381. },
  382. Decal = {
  383. Create = function(Color, Texture, Transparency, Name, Parent)
  384. local Decal = Create("Decal")({
  385. Color3 = Color,
  386. Texture = "rbxassetid://" .. Texture,
  387. Transparency = Transparency,
  388. Name = Name,
  389. Parent = Parent
  390. })
  391. return Decal
  392. end
  393. },
  394. BillboardGui = {
  395. Create = function(Parent, Image, Position, Size)
  396. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  397. BillPar.CFrame = CFrame.new(Position)
  398. local Bill = Create("BillboardGui")({
  399. Parent = BillPar,
  400. Adornee = BillPar,
  401. Size = UDim2.new(1, 0, 1, 0),
  402. SizeOffset = Vector2.new(Size, Size)
  403. })
  404. local d = Create("ImageLabel", Bill)({
  405. Parent = Bill,
  406. BackgroundTransparency = 1,
  407. Size = UDim2.new(1, 0, 1, 0),
  408. Image = "rbxassetid://" .. Image
  409. })
  410. return BillPar
  411. end
  412. },
  413. ParticleEmitter = {
  414. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  415. local Particle = Create("ParticleEmitter")({
  416. Parent = Parent,
  417. Color = ColorSequence.new(Color1, Color2),
  418. LightEmission = LightEmission,
  419. Size = Size,
  420. Texture = Texture,
  421. Transparency = Transparency,
  422. ZOffset = ZOffset,
  423. Acceleration = Accel,
  424. Drag = Drag,
  425. LockedToPart = LockedToPart,
  426. VelocityInheritance = VelocityInheritance,
  427. EmissionDirection = EmissionDirection,
  428. Enabled = Enabled,
  429. Lifetime = LifeTime,
  430. Rate = Rate,
  431. Rotation = Rotation,
  432. RotSpeed = RotSpeed,
  433. Speed = Speed,
  434. VelocitySpread = VelocitySpread
  435. })
  436. return Particle
  437. end
  438. },
  439. CreateTemplate = {}
  440. }
  441. function rayCast(Position, Direction, Range, Ignore)
  442. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  443. end
  444. function FindNearestTorso(Position, Distance, SinglePlayer)
  445. if SinglePlayer then
  446. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  447. end
  448. local List = {}
  449. for i, v in pairs(workspace:GetChildren()) do
  450. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
  451. table.insert(List, v)
  452. end
  453. end
  454. return List
  455. end
  456. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  457. if hit.Parent == nil then
  458. return
  459. end
  460. local h = hit.Parent:FindFirstChild("Part")
  461. for _, v in pairs(hit.Parent:children()) do
  462. if v:IsA("Part") then
  463. h = v
  464. end
  465. end
  466. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  467. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  468. return
  469. end
  470. local c = Create("ObjectValue")({
  471. Name = "creator",
  472. Value = game:service("Players").LocalPlayer,
  473. Parent = h
  474. })
  475. game:GetService("Debris"):AddItem(c, 0.5)
  476. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  477. local Damage = math.random(minim, maxim)
  478. local blocked = false
  479. local block = hit.Parent:findFirstChild("Block")
  480. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  481. blocked = true
  482. block.Value = block.Value - 1
  483. print(block.Value)
  484. end
  485. if Type == "Knockdown" then
  486. local hum = hit.Parent.Humanoid
  487. hum.PlatformStand = true
  488. coroutine.resume(coroutine.create(function(HHumanoid)
  489. swait(1)
  490. HHumanoid.PlatformStand = false
  491. end), hum)
  492. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  493. local bodvol = Create("BodyVelocity")({
  494. velocity = angle * knockback,
  495. P = 5000,
  496. maxForce = Vector3.new(8000, 8000, 8000),
  497. Parent = hit
  498. })
  499. local rl = Create("BodyAngularVelocity")({
  500. P = 3000,
  501. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  502. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  503. Parent = hit
  504. })
  505. game:GetService("Debris"):AddItem(bodvol, 0.5)
  506. game:GetService("Debris"):AddItem(rl, 0.5)
  507. elseif Type == "Normal" then
  508. local vp = Create("BodyVelocity")({
  509. P = 500,
  510. maxForce = Vector3.new(math.huge, 0, math.huge),
  511. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  512. })
  513. if knockback > 0 then
  514. vp.Parent = hit
  515. hit.Parent = workspace
  516. hit.Anchored = false
  517. hit.CanCollide = false
  518. hit:BreakJoints()
  519. end
  520. game:GetService("Debris"):AddItem(vp, 0.5)
  521. elseif Type == "Up" then
  522. local bodyVelocity = Create("BodyVelocity")({
  523. velocity = Vector3.new(0, 20, 0),
  524. P = 5000,
  525. maxForce = Vector3.new(8000, 8000, 8000),
  526. Parent = hit
  527. })
  528. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  529. elseif Type == "DarkUp" then
  530. coroutine.resume(coroutine.create(function()
  531. for i = 0, 1, 0.1 do
  532. swait()
  533. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  534. end
  535. end))
  536. local bodyVelocity = Create("BodyVelocity")({
  537. velocity = Vector3.new(0, 20, 0),
  538. P = 5000,
  539. maxForce = Vector3.new(8000, 8000, 8000),
  540. Parent = hit
  541. })
  542. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  543. elseif Type == "Snare" then
  544. local bp = Create("BodyPosition")({
  545. P = 2000,
  546. D = 100,
  547. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  548. position = hit.Parent.Torso.Position,
  549. Parent = hit.Parent.Torso
  550. })
  551. game:GetService("Debris"):AddItem(bp, 1)
  552. elseif Type == "Freeze" then
  553. local BodPos = Create("BodyPosition")({
  554. P = 50000,
  555. D = 1000,
  556. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  557. position = hit.Parent.Torso.Position,
  558. Parent = hit.Parent.Torso
  559. })
  560. local BodGy = Create("BodyGyro")({
  561. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  562. P = 20000,
  563. Parent = hit.Parent.Torso,
  564. cframe = hit.Parent.Torso.CFrame
  565. })
  566. hit.Parent.Torso.Anchored = true
  567. coroutine.resume(coroutine.create(function(Part)
  568. swait(1.5)
  569. Part.Anchored = false
  570. end), hit.Parent.Torso)
  571. game:GetService("Debris"):AddItem(BodPos, 3)
  572. game:GetService("Debris"):AddItem(BodGy, 3)
  573. end
  574. local debounce = Create("BoolValue")({
  575. Name = "DebounceHit",
  576. Parent = hit.Parent,
  577. Value = true
  578. })
  579. game:GetService("Debris"):AddItem(debounce, Delay)
  580. c = Create("ObjectValue")({
  581. Name = "creator",
  582. Value = Player,
  583. Parent = h
  584. })
  585. game:GetService("Debris"):AddItem(c, 0.5)
  586. end
  587. end
  588. function ShowDamage(Pos, Text, Time, Color)
  589. local Rate = 0.03333333333333333
  590. local Pos = Pos or Vector3.new(0, 0, 0)
  591. local Text = Text or ""
  592. local Time = Time or 2
  593. local Color = Color or Color3.new(1, 0, 1)
  594. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  595. EffectPart.Anchored = true
  596. local BillboardGui = Create("BillboardGui")({
  597. Size = UDim2.new(3, 0, 3, 0),
  598. Adornee = EffectPart,
  599. Parent = EffectPart
  600. })
  601. local TextLabel = Create("TextLabel")({
  602. BackgroundTransparency = 1,
  603. Size = UDim2.new(1, 0, 1, 0),
  604. Text = Text,
  605. Font = "Garamond",
  606. TextColor3 = Torso.Color,
  607. TextScaled = true,
  608. Parent = BillboardGui
  609. })
  610. game.Debris:AddItem(EffectPart, Time)
  611. EffectPart.Parent = game:GetService("Workspace")
  612. delay(0, function()
  613. local Frames = Time / Rate
  614. for Frame = 1, Frames do
  615. wait(Rate)
  616. local Percent = Frame / Frames
  617. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  618. TextLabel.TextTransparency = Percent
  619. end
  620. if EffectPart and EffectPart.Parent then
  621. EffectPart:Destroy()
  622. end
  623. end)
  624. end
  625. sound = Instance.new("Sound", Character)
  626. sound.SoundId = "rbxassetid://1101468563"
  627. sound.Volume = 0
  628. sound.EmitterSize = 25
  629. sound:Play()
  630. sound.Looped = true
  631. CV = "Maroon"
  632. Player = game.Players.LocalPlayer
  633. char = Player.Character
  634. local txt = Instance.new("BillboardGui", Character)
  635. txt.Adornee = Character.Head
  636. txt.Name = "_status"
  637. txt.Size = UDim2.new(2, 0, 1.2, 0)
  638. txt.StudsOffset = Vector3.new(-9, 8, 0)
  639. local text = Instance.new("TextLabel", txt)
  640. text.Size = UDim2.new(10, 0, 7, 0)
  641. text.FontSize = "Size24"
  642. text.TextScaled = true
  643. text.TextTransparency = 0
  644. text.BackgroundTransparency = 1
  645. text.TextTransparency = 0
  646. text.TextStrokeTransparency = 1
  647. text.Font = "Cartoon"
  648. v = Instance.new("Part")
  649. v.Name = "ColorBrick"
  650. v.Parent = Player.Character
  651. v.FormFactor = "Symmetric"
  652. v.Anchored = true
  653. v.CanCollide = false
  654. v.BottomSurface = "Smooth"
  655. v.TopSurface = "Smooth"
  656. v.Size = Vector3.new(10, 5, 3)
  657. v.Transparency = 1
  658. v.CFrame = Character.Torso.CFrame
  659. v.BrickColor = BrickColor.new(CV)
  660. v.Transparency = 1
  661. touchCounter = 0
  662. local cR=255
  663. local cG=0
  664. local cB=0
  665. local flg5=1 local omgidk=1
  666. local add=15
  667. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  668. if omgidk>10000 then omgidk=0 end
  669. omgidk=omgidk+1
  670. if cR>=255 then flg5=1 end
  671. if cG>=255 then flg5=2 end
  672. if cB>=255 then flg5=3 end
  673. if flg5==1 then cR=cR-add cG=cG+add end
  674. if flg5==2 then cG=cG-add cB=cB+add end
  675. if flg5==3 then cB=cB-add cR=cR+add end
  676. color=Color3.fromRGB(cR,cG,cB)
  677. text.TextColor3 = color
  678. end)
  679. v.Shape = "Block"
  680. text.Text = "A minecraft pro but with a rainbow shovel"
  681. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  682. for _, c in pairs(workspace:children()) do
  683. local hum = c:findFirstChild("Humanoid")
  684. if hum ~= nil then
  685. local head = hit
  686. if head ~= nil then
  687. local targ = head.Position - Part.Position
  688. local mag = targ.magnitude
  689. if Magnitude >= mag and c.Name ~= Player.Name then
  690. CFuncs.Sound.Create("324867021", head, 1, 1)
  691. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  692. end
  693. end
  694. end
  695. end
  696. end
  697. Handle = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 1, "Bright green", "Handle", Vector3.new(1, 1.20000005, 1))
  698. 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))
  699. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part", Vector3.new(1, 1.20000005, 1))
  700. 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))
  701. CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 1, 0.0500000007))
  702. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part1", Vector3.new(1, 1.20000005, 1))
  703. 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))
  704. CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0500000007, 1, 0.600000024))
  705. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part2", Vector3.new(1, 1.20000005, 1))
  706. 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))
  707. CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  708. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part3", Vector3.new(1, 1.20000005, 1))
  709. 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))
  710. CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0500000007, 1, 0.600000024))
  711. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part4", Vector3.new(1, 1.20000005, 1))
  712. 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))
  713. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  714. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part5", Vector3.new(1, 1.20000005, 1))
  715. 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))
  716. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003))
  717. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part6", Vector3.new(1, 1.20000005, 1))
  718. 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))
  719. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 0.5))
  720. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part7", Vector3.new(1, 1.20000005, 1))
  721. 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))
  722. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003))
  723. Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part8", Vector3.new(1, 1.20000005, 1))
  724. 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))
  725. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003))
  726. Shaft = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "Brown", "Shaft", Vector3.new(0.3, 3.60000014, 0.3))
  727. 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))
  728. Hitbox = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Hitbox", Vector3.new(7, 3, 3))
  729. 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))
  730. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  731. sref.Anchored = true
  732. local cR=255
  733. local cG=0
  734. local cB=0
  735. local flg5=1 local omgidk=1
  736. local add=15
  737. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  738. if omgidk>10000 then omgidk=0 end
  739. omgidk=omgidk+1
  740. if cR>=255 then flg5=1 end
  741. if cG>=255 then flg5=2 end
  742. if cB>=255 then flg5=3 end
  743. if flg5==1 then cR=cR-add cG=cG+add end
  744. if flg5==2 then cG=cG-add cB=cB+add end
  745. if flg5==3 then cB=cB-add cR=cR+add end
  746. color=Color3.fromRGB(cR,cG,cB)
  747. local d = Character.WeaponModel
  748. d.Shaft.Color = color
  749. d.Part.Color = color
  750. d.Part1.Color = color
  751. d.Part2.Color = color
  752. d.Part3.Color = color
  753. d.Part4.Color = color
  754. d.Part5.Color = color
  755. d.Part6.Color = color
  756. d.Part7.Color = color
  757. d.Part8.Color = color
  758. d.Part.Material = Enum.Material.Neon
  759. d.Part1.Material = Enum.Material.Neon
  760. d.Part2.Material = Enum.Material.Neon
  761. d.Part3.Material = Enum.Material.Neon
  762. d.Part4.Material = Enum.Material.Neon
  763. d.Part5.Material = Enum.Material.Neon
  764. d.Part6.Material = Enum.Material.Neon
  765. d.Part7.Material = Enum.Material.Neon
  766. d.Part8.Material = Enum.Material.Neon
  767. end)
  768. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  769. Effects = {
  770. Block = {
  771. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  772. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  773. prt.Anchored = true
  774. prt.CFrame = cframe
  775. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  776. game:GetService("Debris"):AddItem(prt, 10)
  777. if Type == 1 or Type == nil then
  778. table.insert(Effects, {
  779. prt,
  780. "Block1",
  781. delay,
  782. x3,
  783. y3,
  784. z3,
  785. msh
  786. })
  787. elseif Type == 2 then
  788. table.insert(Effects, {
  789. prt,
  790. "Block2",
  791. delay,
  792. x3,
  793. y3,
  794. z3,
  795. msh
  796. })
  797. end
  798. end
  799. },
  800. Cylinder = {
  801. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  802. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  803. prt.Anchored = true
  804. prt.CFrame = cframe
  805. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  806. game:GetService("Debris"):AddItem(prt, 2)
  807. table.insert(Effects, {
  808. prt,
  809. "Cylinder",
  810. delay,
  811. x3,
  812. y3,
  813. z3,
  814. msh
  815. })
  816. end
  817. },
  818. Head = {
  819. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  820. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  821. prt.Anchored = true
  822. prt.CFrame = cframe
  823. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  824. game:GetService("Debris"):AddItem(prt, 10)
  825. table.insert(Effects, {
  826. prt,
  827. "Cylinder",
  828. delay,
  829. x3,
  830. y3,
  831. z3,
  832. msh
  833. })
  834. end
  835. },
  836. Sphere = {
  837. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  838. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  839. prt.Anchored = true
  840. prt.CFrame = cframe
  841. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  842. game:GetService("Debris"):AddItem(prt, 10)
  843. table.insert(Effects, {
  844. prt,
  845. "Cylinder",
  846. delay,
  847. x3,
  848. y3,
  849. z3,
  850. msh
  851. })
  852. end
  853. },
  854. Elect = {
  855. Create = function(cff, x, y, z)
  856. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  857. prt.Anchored = true
  858. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  859. prt.CFrame = CFrame.new(prt.Position)
  860. game:GetService("Debris"):AddItem(prt, 2)
  861. local xval = math.random() / 2
  862. local yval = math.random() / 2
  863. local zval = math.random() / 2
  864. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  865. table.insert(Effects, {
  866. prt,
  867. "Elec",
  868. 0.1,
  869. x,
  870. y,
  871. z,
  872. xval,
  873. yval,
  874. zval
  875. })
  876. end
  877. },
  878. Ring = {
  879. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  880. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  881. prt.Anchored = true
  882. prt.CFrame = cframe
  883. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  884. game:GetService("Debris"):AddItem(prt, 10)
  885. table.insert(Effects, {
  886. prt,
  887. "Cylinder",
  888. delay,
  889. x3,
  890. y3,
  891. z3,
  892. msh
  893. })
  894. end
  895. },
  896. Wave = {
  897. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  898. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  899. prt.Anchored = true
  900. prt.CFrame = cframe
  901. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  902. game:GetService("Debris"):AddItem(prt, 10)
  903. table.insert(Effects, {
  904. prt,
  905. "Cylinder",
  906. delay,
  907. x3,
  908. y3,
  909. z3,
  910. msh
  911. })
  912. end
  913. },
  914. Break = {
  915. Create = function(brickcolor, cframe, x1, y1, z1)
  916. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  917. prt.Anchored = true
  918. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  919. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  920. local num = math.random(10, 50) / 1000
  921. game:GetService("Debris"):AddItem(prt, 10)
  922. table.insert(Effects, {
  923. prt,
  924. "Shatter",
  925. num,
  926. prt.CFrame,
  927. math.random() - math.random(),
  928. 0,
  929. math.random(50, 100) / 100
  930. })
  931. end
  932. },
  933. Fire = {
  934. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  935. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  936. prt.Anchored = true
  937. prt.CFrame = cframe
  938. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  939. game:GetService("Debris"):AddItem(prt, 10)
  940. table.insert(Effects, {
  941. prt,
  942. "Fire",
  943. delay,
  944. 1,
  945. 1,
  946. 1,
  947. msh
  948. })
  949. end
  950. },
  951. FireWave = {
  952. Create = function(brickcolor, cframe, x1, y1, z1)
  953. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  954. prt.Anchored = true
  955. prt.CFrame = cframe
  956. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  957. local d = Create("Decal")({
  958. Parent = prt,
  959. Texture = "rbxassetid://26356434",
  960. Face = "Top"
  961. })
  962. local d = Create("Decal")({
  963. Parent = prt,
  964. Texture = "rbxassetid://26356434",
  965. Face = "Bottom"
  966. })
  967. game:GetService("Debris"):AddItem(prt, 10)
  968. table.insert(Effects, {
  969. prt,
  970. "FireWave",
  971. 1,
  972. 30,
  973. math.random(400, 600) / 100,
  974. msh
  975. })
  976. end
  977. },
  978. Lightning = {
  979. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  980. local magz = (p0 - p1).magnitude
  981. local curpos = p0
  982. local trz = {
  983. -ofs,
  984. ofs
  985. }
  986. for i = 1, tym do
  987. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  988. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  989. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  990. li.Material = "Neon"
  991. if tym == i then
  992. local magz2 = (curpos - p1).magnitude
  993. li.Size = Vector3.new(th, th, magz2)
  994. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  995. table.insert(Effects, {
  996. li,
  997. "Disappear",
  998. last
  999. })
  1000. else
  1001. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1002. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1003. game.Debris:AddItem(li, 10)
  1004. table.insert(Effects, {
  1005. li,
  1006. "Disappear",
  1007. last
  1008. })
  1009. end
  1010. end
  1011. end
  1012. },
  1013. EffectTemplate = {}
  1014. }
  1015. function ears()
  1016. local quote = math.random(1, 10)
  1017. if quote == 1 then
  1018. ow = CFuncs.Sound.Create("276916733", Character, 10, 1)
  1019. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  1020. elseif quote == 2 then
  1021. ow = CFuncs.Sound.Create("222045669", Character, 10, 1)
  1022. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  1023. 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)
  1024. elseif quote == 3 then
  1025. ow = CFuncs.Sound.Create("657527128", Character, 10, 1)
  1026. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  1027. 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)
  1028. elseif quote == 4 then
  1029. CFuncs.Sound.Create("230292394", Character, 10, 1)
  1030. 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)
  1031. elseif quote == 5 then
  1032. CFuncs.Sound.Create("230255621", Character, 10, 1)
  1033. 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)
  1034. wait(0.2)
  1035. 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)
  1036. elseif quote == 6 then
  1037. CFuncs.Sound.Create("230255698", Character, 10, 1)
  1038. 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)
  1039. elseif quote == 7 then
  1040. CFuncs.Sound.Create("230255738", Character, 10, 1)
  1041. 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)
  1042. elseif quote == 8 then
  1043. CFuncs.Sound.Create("230292118", Character, 10, 1)
  1044. 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)
  1045. elseif quote == 9 then
  1046. CFuncs.Sound.Create("230292073", Character, 10, 1)
  1047. 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)
  1048. elseif quote == 10 then
  1049. ow = CFuncs.Sound.Create("225279648", Character, 10, 1)
  1050. Instance.new("DistortionSoundEffect", ow).Level = 0.95
  1051. 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)
  1052. end
  1053. end
  1054. function joj()
  1055. while oof == true do
  1056. attack = true
  1057. local con = Hitbox.Touched:connect(function(hit)
  1058. Damage(Hitbox, hit, 0, 0, math.random(300, 300), "Normal", RootPart, 0.1, "146163534", 1)
  1059. end)
  1060. CFuncs.Sound.Create("1102186681", Hitbox, 10, 1)
  1061. for i = 0, 1, 0.1 do
  1062. swait()
  1063. PlayAnimationFromTable({
  1064. 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),
  1065. 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),
  1066. 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),
  1067. 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),
  1068. 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),
  1069. 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)
  1070. }, 0.3, false)
  1071. end
  1072. for i = 0, 1, 0.1 do
  1073. swait()
  1074. PlayAnimationFromTable({
  1075. 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),
  1076. 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),
  1077. 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),
  1078. 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),
  1079. 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),
  1080. 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)
  1081. }, 0.3, false)
  1082. end
  1083. con:Disconnect()
  1084. attack = false
  1085. end
  1086. end
  1087. Mouse.Button1Down:connect(function()
  1088. if attack == false and oof == false then
  1089. oof = true
  1090. joj()
  1091. end
  1092. end)
  1093. Mouse.Button1Up:connect(function()
  1094. if attack == true and oof == true then
  1095. oof = false
  1096. end
  1097. end)
  1098. Mouse.KeyDown:connect(function(k)
  1099. k = k:lower()
  1100. if k == "t" then
  1101. ears()
  1102. end
  1103. end)
  1104. while true do
  1105. swait()
  1106. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1107. for i, v in pairs(Character:GetChildren()) do
  1108. if v:IsA("Part") then
  1109. v.Material = "SmoothPlastic"
  1110. elseif v:IsA("Accessory") then
  1111. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1112. end
  1113. end
  1114. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1115. velocity = RootPart.Velocity.y
  1116. sine = sine + change
  1117. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1118. if RootPart.Velocity.y > 1 and hit == nil then
  1119. Anim = "Jump"
  1120. if attack == false then
  1121. PlayAnimationFromTable({
  1122. 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),
  1123. 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),
  1124. 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),
  1125. 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),
  1126. 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),
  1127. 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)
  1128. }, 0.3, false)
  1129. end
  1130. elseif RootPart.Velocity.y < -1 and hit == nil then
  1131. Anim = "Fall"
  1132. if attack == false then
  1133. PlayAnimationFromTable({
  1134. 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),
  1135. 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),
  1136. 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),
  1137. 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),
  1138. 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),
  1139. 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)
  1140. }, 0.3, false)
  1141. end
  1142. elseif Torsovelocity < 1 and hit ~= nil then
  1143. Anim = "Idle"
  1144. if attack == false then
  1145. change = 1
  1146. PlayAnimationFromTable({
  1147. 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),
  1148. 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),
  1149. 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),
  1150. 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),
  1151. 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),
  1152. 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)
  1153. }, 0.3, false)
  1154. end
  1155. elseif Torsovelocity > 2 and hit ~= nil then
  1156. Anim = "Walk"
  1157. if attack == false then
  1158. change = 2
  1159. PlayAnimationFromTable({
  1160. 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),
  1161. 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),
  1162. 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),
  1163. 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),
  1164. 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)),
  1165. 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))
  1166. }, 0.3, false)
  1167. end
  1168. end
  1169. if 0 < #Effects then
  1170. for e = 1, #Effects do
  1171. if Effects[e] ~= nil then
  1172. local Thing = Effects[e]
  1173. if Thing ~= nil then
  1174. local Part = Thing[1]
  1175. local Mode = Thing[2]
  1176. local Delay = Thing[3]
  1177. local IncX = Thing[4]
  1178. local IncY = Thing[5]
  1179. local IncZ = Thing[6]
  1180. if Thing[2] == "Shoot" then
  1181. local Look = Thing[1]
  1182. local move = 5
  1183. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1184. if Thing[10] ~= nil then
  1185. da = pos
  1186. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1187. cfa = CFrame.new(Thing[4], pos)
  1188. tehCF = cfa:lerp(cf2, 0.2)
  1189. Thing[1] = tehCF.lookVector
  1190. end
  1191. local mag = (Thing[4] - pos).magnitude
  1192. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1193. 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)
  1194. Thing[4] = Thing[4] + Look * move
  1195. Thing[3] = Thing[3] - 1
  1196. if 2 < Thing[5] then
  1197. Thing[5] = Thing[5] - 0.3
  1198. Thing[6] = Thing[6] - 0.3
  1199. end
  1200. if hit ~= nil then
  1201. Thing[3] = 0
  1202. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1203. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1204. ref.Anchored = true
  1205. ref.CFrame = CFrame.new(pos)
  1206. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, 0.05)
  1207. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1208. game:GetService("Debris"):AddItem(ref, 1)
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. end
  1215. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement