Advertisement
ItzPartapika

Smaccer (Soviet Officer Edit)

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