Advertisement
DylanD2003

Untitled

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