Advertisement
EdgyHedgehog

SMACCER FE

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