Advertisement
Plug_RBLX

Untitled

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