Advertisement
EnderPlayBro

Untitled

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