Advertisement
Pancakess

uncle

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