Advertisement
Kiutb

Untitled

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