Advertisement
istealscripts

oof

Mar 27th, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.14 KB | None | 0 0
  1. print("Made by SezHu for Void's Script Builder. If logged, please do not remove credit.")
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. Humanoid.WalkSpeed = 200
  8. local Mouse = Player:GetMouse()
  9. local LeftArm = Character["Left Arm"]
  10. local RightArm = Character["Right Arm"]
  11. local LeftLeg = Character["Left Leg"]
  12. local RightLeg = Character["Right Leg"]
  13. local Head = Character.Head
  14. local Torso = Character.Torso
  15. local Camera = game.Workspace.CurrentCamera
  16. local RootPart = Character.HumanoidRootPart
  17. local RootJoint = RootPart.RootJoint
  18. local attack = false
  19. local Anim = 'Idle'
  20. local attacktype = 1
  21. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  22. local velocity = RootPart.Velocity.y
  23. local sine = 0
  24. local change = 1
  25. local Create = LoadLibrary("RbxUtility").Create
  26. for i,v in pairs(Character:GetChildren()) do
  27. if v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
  28. v:Remove()
  29. end
  30. end
  31. lhand = Character["Left Arm"]
  32. rhand = Character["Right Arm"]
  33. lleg = Character["Left Leg"]
  34. rleg = Character["Right Leg"]
  35. local shouldertec = Instance.new("Decal", lhand)
  36. shouldertec.Texture = "http://www.roblox.com/asset/?id=77986517"
  37. shouldertec.Face = "Top"
  38. local shouldertec1 = Instance.new("Decal", rhand)
  39. shouldertec1.Texture = "http://www.roblox.com/asset/?id=77986517"
  40. shouldertec1.Face = "Top"
  41. local shouldertec11 = Instance.new("Decal", rhand)
  42. shouldertec11.Texture = "http://www.roblox.com/asset/?id=178274539"
  43. shouldertec11.Face = "Bottom"
  44. local shouldertec111 = Instance.new("Decal", lhand)
  45. shouldertec111.Texture = "http://www.roblox.com/asset/?id=178274539"
  46. shouldertec111.Face = "Bottom"
  47. local legtec = Instance.new("Decal", lleg)
  48. legtec.Texture = "http://www.roblox.com/asset/?id=178274539"
  49. legtec.Face = "Bottom"
  50. local legtec1 = Instance.new("Decal", rleg)
  51. legtec1.Texture = "http://www.roblox.com/asset/?id=178274539"
  52. legtec1.Face = "Bottom"
  53. bdycolors = Character["Body Colors"]
  54. bdycolors.HeadColor = BrickColor.new("Bright yellow")
  55. bdycolors.LeftArmColor = BrickColor.new("Bright yellow")
  56. bdycolors.LeftLegColor = BrickColor.new("Br. yellowish green")
  57. bdycolors.RightArmColor = BrickColor.new("Bright yellow")
  58. bdycolors.RightLegColor = BrickColor.new("Br. yellowish green")
  59. bdycolors.TorsoColor = BrickColor.new("Bright blue")
  60. Humanoid.Health = math.huge
  61. Head.face.Texture = "http://www.roblox.com/asset/?id=246990268"
  62. function swait(num)
  63. if num == 0 or num == nil then
  64. game:service("RunService").Stepped:wait(0)
  65. else
  66. for i = 0, num do
  67. game:service("RunService").Stepped:wait(0)
  68. end
  69. end
  70. end
  71. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  72. txtfag.Adornee = suckadick
  73. txtfag.Name = "kys nigga"
  74. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  75. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  76. local textfag = Instance.new("TextLabel", txtfag)
  77. textfag.Size = UDim2.new(6, 0, 1, 0)
  78. textfag.FontSize = "Size8"
  79. textfag.TextScaled = true
  80. textfag.TextTransparency = 0
  81. textfag.BackgroundTransparency = 1
  82. textfag.TextTransparency = 0
  83. textfag.TextStrokeTransparency = 0
  84. textfag.Font = "SourceSans"
  85. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  86. v = Instance.new("Part")
  87. v.Name = "ColorBrick"
  88. v.Parent = part
  89. v.FormFactor = "Symmetric"
  90. v.Anchored = true
  91. v.CanCollide = false
  92. v.BottomSurface = "Smooth"
  93. v.TopSurface = "Smooth"
  94. v.Size = Vector3.new(10, 5, 3)
  95. v.Transparency = 0.7
  96. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  97. v.Transparency = 1
  98. textfag.TextColor3 = BrickColor.new("Fire Yellow").Color
  99. textfag.TextStrokeColor3 = BrickColor.new("Really black").Color
  100. v.Shape = "Block"
  101. textfag.Text = "Ult1m4te n00b"
  102. coroutine.resume(coroutine.create(function()
  103. while true do
  104. swait()
  105. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  106. textfag.Rotation = math.random(-3,3)
  107. end
  108. end))
  109. Instance.new("ForceField",Character).Visible = false
  110. hit = nil
  111. oof = false
  112. local m = Create("Model"){
  113. Parent = Character,
  114. Name = "rainbowsh0vel",
  115. }
  116.  
  117. Humanoid.Animator.Parent = nil
  118. Character.Animate.Parent = nil
  119.  
  120. local newMotor = function(part0, part1, c0, c1)
  121. local w = Create('Motor'){
  122. Parent = part0,
  123. Part0 = part0,
  124. Part1 = part1,
  125. C0 = c0,
  126. C1 = c1,
  127. }
  128. return w
  129. end
  130.  
  131. function clerp(a, b, t)
  132. return a:lerp(b, t)
  133. end
  134.  
  135. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  136. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  137.  
  138. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  139. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  140. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  141. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  142. RootJoint.C1 = CFrame.new(0, 0, 0)
  143. RootJoint.C0 = CFrame.new(0, 0, 0)
  144. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  145. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  146.  
  147. local rarmc1 = RW.C1
  148. local larmc1 = LW.C1
  149. local rlegc1 = RH.C1
  150. local llegc1 = LH.C1
  151.  
  152. local resetc1 = false
  153.  
  154. function PlayAnimationFromTable(table, speed, bool)
  155. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  156. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  157. RW.C0 = clerp(RW.C0, table[3], speed)
  158. LW.C0 = clerp(LW.C0, table[4], speed)
  159. RH.C0 = clerp(RH.C0, table[5], speed)
  160. LH.C0 = clerp(LH.C0, table[6], speed)
  161. if bool == true then
  162. if resetc1 == false then
  163. resetc1 = true
  164. RootJoint.C1 = RootJoint.C1
  165. Torso.Neck.C1 = Torso.Neck.C1
  166. RW.C1 = rarmc1
  167. LW.C1 = larmc1
  168. RH.C1 = rlegc1
  169. LH.C1 = llegc1
  170. end
  171. end
  172. end
  173.  
  174. ArtificialHB = Create("BindableEvent", script){
  175. Parent = script,
  176. Name = "Heartbeat",
  177. }
  178.  
  179. script:WaitForChild("Heartbeat")
  180.  
  181. frame = 1 / 500
  182. tf = 0
  183. allowframeloss = false
  184. tossremainder = false
  185. lastframe = tick()
  186. script.Heartbeat:Fire()
  187.  
  188. game:GetService("RunService").Heartbeat:connect(function(s, p)
  189. tf = tf + s
  190. if tf >= frame then
  191. if allowframeloss then
  192. script.Heartbeat:Fire()
  193. lastframe = tick()
  194. else
  195. for i = 1, math.floor(tf / frame) do
  196. script.Heartbeat:Fire()
  197. end
  198. lastframe = tick()
  199. end
  200. if tossremainder then
  201. tf = 0
  202. else
  203. tf = tf - frame * math.floor(tf / frame)
  204. end
  205. end
  206. end)
  207.  
  208. function swait(num)
  209. if num == 0 or num == nil then
  210. ArtificialHB.Event:wait()
  211. else
  212. for i = 0, num do
  213. ArtificialHB.Event:wait()
  214. end
  215. end
  216. end
  217.  
  218. function RemoveOutlines(part)
  219. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  220. end
  221.  
  222. CFuncs = {
  223. Part = {
  224. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  225. local Part = Create("Part"){
  226. Parent = Parent,
  227. Reflectance = Reflectance,
  228. Transparency = Transparency,
  229. CanCollide = false,
  230. Locked = true,
  231. BrickColor = BrickColor.new(tostring(BColor)),
  232. Name = Name,
  233. Size = Size,
  234. Material = Material,
  235. }
  236. RemoveOutlines(Part)
  237. if Size == Vector3.new() then
  238. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  239. else
  240. Part.Size = Size
  241. end
  242. return Part
  243. end;
  244. };
  245.  
  246. Mesh = {
  247. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  248. local Msh = Create(Mesh){
  249. Parent = Part,
  250. Offset = OffSet,
  251. Scale = Scale,
  252. }
  253. if Mesh == "SpecialMesh" then
  254. Msh.MeshType = MeshType
  255. Msh.MeshId = MeshId
  256. end
  257. return Msh
  258. end;
  259. };
  260.  
  261. Weld = {
  262. Create = function(Parent, Part0, Part1, C0, C1)
  263. local Weld = Create("Weld"){
  264. Parent = Parent,
  265. Part0 = Part0,
  266. Part1 = Part1,
  267. C0 = C0,
  268. C1 = C1,
  269. }
  270. return Weld
  271. end;
  272. };
  273.  
  274. Sound = {
  275. Create = function(id, par, vol, pit)
  276. local Sound = Create("Sound"){
  277. Volume = vol,
  278. Pitch = pit or 1,
  279. SoundId = "rbxassetid://" .. id,
  280. Parent = par or workspace,
  281. }
  282. Sound:play()
  283. return Sound
  284. end;
  285. };
  286.  
  287. Decal = {
  288. Create = function(Color, Texture, Transparency, Name, Parent)
  289. local Decal = Create("Decal"){
  290. Color3 = Color,
  291. Texture = "rbxassetid://" .. Texture,
  292. Transparency = Transparency,
  293. Name = Name,
  294. Parent = Parent,
  295. }
  296. return Decal
  297. end;
  298. };
  299.  
  300. BillboardGui = {
  301. Create = function(Parent, Image, Position, Size)
  302. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  303. BillPar.CFrame = CFrame.new(Position)
  304. local Bill = Create("BillboardGui"){
  305. Parent = BillPar,
  306. Adornee = BillPar,
  307. Size = UDim2.new(1, 0, 1, 0),
  308. SizeOffset = Vector2.new(Size, Size),
  309. }
  310. local d = Create("ImageLabel", Bill){
  311. Parent = Bill,
  312. BackgroundTransparency = 1,
  313. Size = UDim2.new(1, 0, 1, 0),
  314. Image = "rbxassetid://" .. Image,
  315. }
  316. return BillPar
  317. end
  318. };
  319.  
  320. ParticleEmitter = {
  321. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  322. local Particle = Create("ParticleEmitter"){
  323. Parent = Parent,
  324. Color = ColorSequence.new(Color1, Color2),
  325. LightEmission = LightEmission,
  326. Size = Size,
  327. Texture = Texture,
  328. Transparency = Transparency,
  329. ZOffset = ZOffset,
  330. Acceleration = Accel,
  331. Drag = Drag,
  332. LockedToPart = LockedToPart,
  333. VelocityInheritance = VelocityInheritance,
  334. EmissionDirection = EmissionDirection,
  335. Enabled = Enabled,
  336. Lifetime = LifeTime,
  337. Rate = Rate,
  338. Rotation = Rotation,
  339. RotSpeed = RotSpeed,
  340. Speed = Speed,
  341. VelocitySpread = VelocitySpread,
  342. }
  343. return Particle
  344. end;
  345. };
  346.  
  347. CreateTemplate = {
  348.  
  349. };
  350. }
  351.  
  352. function rayCast(Position, Direction, Range, Ignore)
  353. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  354. end
  355.  
  356. function FindNearestTorso(Position, Distance, SinglePlayer)
  357. if SinglePlayer then
  358. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  359. end
  360. local List = {}
  361. for i, v in pairs(workspace:GetChildren()) do
  362. if v:IsA("Model") then
  363. if v:findFirstChild("Torso") then
  364. if v ~= Character then
  365. if (v.Torso.Position - Position).magnitude <= Distance then
  366. table.insert(List, v)
  367. end
  368. end
  369. end
  370. end
  371. end
  372. return List
  373. end
  374.  
  375. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  376. if hit.Parent == nil then
  377. return
  378. end
  379. local h = hit.Parent:FindFirstChild("Part")
  380. for _, v in pairs(hit.Parent:children()) do
  381. if v:IsA("Part") then
  382. h = v
  383. end
  384. end
  385. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  386. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  387. if hit.Parent.DebounceHit.Value == true then
  388. return
  389. end
  390. end
  391. local c = Create("ObjectValue"){
  392. Name = "creator",
  393. Value = game:service("Players").LocalPlayer,
  394. Parent = h,
  395. }
  396. game:GetService("Debris"):AddItem(c, .5)
  397. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  398. local Damage = math.random(minim, maxim)
  399. local blocked = false
  400. local block = hit.Parent:findFirstChild("Block")
  401. if block ~= nil then
  402. if block.className == "IntValue" then
  403. if block.Value > 0 then
  404. blocked = true
  405. block.Value = block.Value - 1
  406. print(block.Value)
  407. end
  408. end
  409. end
  410. if Type == "Knockdown" then
  411. local hum = hit.Parent.Humanoid
  412. hum.PlatformStand = true
  413. coroutine.resume(coroutine.create(function(HHumanoid)
  414. swait(1)
  415. HHumanoid.PlatformStand = false
  416. end), hum)
  417. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  418. local bodvol = Create("BodyVelocity"){
  419. velocity = angle * knockback,
  420. P = 5000,
  421. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  422. Parent = hit,
  423. }
  424. local rl = Create("BodyAngularVelocity"){
  425. P = 3000,
  426. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  427. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  428. Parent = hit,
  429. }
  430. game:GetService("Debris"):AddItem(bodvol, .5)
  431. game:GetService("Debris"):AddItem(rl, .5)
  432. elseif Type == "Normal" then
  433. local vp = Create("BodyVelocity"){
  434. P = 500,
  435. maxForce = Vector3.new(math.huge, 0, math.huge),
  436. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  437. }
  438. if knockback > 0 then
  439. vp.Parent = hit
  440. hit.Parent = workspace
  441. hit.Anchored = false
  442. hit.CanCollide = false
  443. hit:BreakJoints()
  444. end
  445. game:GetService("Debris"):AddItem(vp, .5)
  446. elseif Type == "Up" then
  447. local bodyVelocity = Create("BodyVelocity"){
  448. velocity = Vector3.new(0, 20, 0),
  449. P = 5000,
  450. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  451. Parent = hit,
  452. }
  453. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  454. elseif Type == "DarkUp" then
  455. coroutine.resume(coroutine.create(function()
  456. for i = 0, 1, 0.1 do
  457. swait()
  458. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  459. end
  460. end))
  461. local bodyVelocity = Create("BodyVelocity"){
  462. velocity = Vector3.new(0, 20, 0),
  463. P = 5000,
  464. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  465. Parent = hit,
  466. }
  467. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  468. elseif Type == "Snare" then
  469. local bp = Create("BodyPosition"){
  470. P = 2000,
  471. D = 100,
  472. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  473. position = hit.Parent.Torso.Position,
  474. Parent = hit.Parent.Torso,
  475. }
  476. game:GetService("Debris"):AddItem(bp, 1)
  477. elseif Type == "Freeze" then
  478. local BodPos = Create("BodyPosition"){
  479. P = 50000,
  480. D = 1000,
  481. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  482. position = hit.Parent.Torso.Position,
  483. Parent = hit.Parent.Torso,
  484. }
  485. local BodGy = Create("BodyGyro") {
  486. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  487. P = 20e+003,
  488. Parent = hit.Parent.Torso,
  489. cframe = hit.Parent.Torso.CFrame,
  490. }
  491. hit.Parent.Torso.Anchored = true
  492. coroutine.resume(coroutine.create(function(Part)
  493. swait(1.5)
  494. Part.Anchored = false
  495. end), hit.Parent.Torso)
  496. game:GetService("Debris"):AddItem(BodPos, 3)
  497. game:GetService("Debris"):AddItem(BodGy, 3)
  498. end
  499. local debounce = Create("BoolValue"){
  500. Name = "DebounceHit",
  501. Parent = hit.Parent,
  502. Value = true,
  503. }
  504. game:GetService("Debris"):AddItem(debounce, Delay)
  505. c = Create("ObjectValue"){
  506. Name = "creator",
  507. Value = Player,
  508. Parent = h,
  509. }
  510. game:GetService("Debris"):AddItem(c, .5)
  511. end
  512. end
  513.  
  514. function ShowDamage(Pos, Text, Time, Color)
  515. local Rate = (1 / 30)
  516. local Pos = (Pos or Vector3.new(0, 0, 0))
  517. local Text = (Text or "")
  518. local Time = (Time or 2)
  519. local Color = (Color or Color3.new(1, 0, 1))
  520. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  521. EffectPart.Anchored = true
  522. local BillboardGui = Create("BillboardGui"){
  523. Size = UDim2.new(3, 0, 3, 0),
  524. Adornee = EffectPart,
  525. Parent = EffectPart,
  526. }
  527. local TextLabel = Create("TextLabel"){
  528. BackgroundTransparency = 1,
  529. Size = UDim2.new(1, 0, 1, 0),
  530. Text = Text,
  531. Font = "Garamond",
  532. TextColor3 = Torso.Color,
  533. TextScaled = true,
  534. Parent = BillboardGui,
  535. }
  536. game.Debris:AddItem(EffectPart, (Time))
  537. EffectPart.Parent = game:GetService("Workspace")
  538. delay(0, function()
  539. local Frames = (Time / Rate)
  540. for Frame = 1, Frames do
  541. wait(Rate)
  542. local Percent = (Frame / Frames)
  543. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  544. TextLabel.TextTransparency = Percent
  545. end
  546. if EffectPart and EffectPart.Parent then
  547. EffectPart:Destroy()
  548. end
  549. end)
  550. end
  551.  
  552.  
  553.  
  554.  
  555. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  556. for _, c in pairs(workspace:children()) do
  557. local hum = c:findFirstChild("Humanoid")
  558. if hum ~= nil then
  559. local head = hit
  560. if head ~= nil then
  561. local targ = head.Position - Part.Position
  562. local mag = targ.magnitude
  563. if mag <= Magnitude and c.Name ~= Player.Name then
  564. CFuncs.Sound.Create("604650009", head, 1, 1)
  565. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  566. end
  567. end
  568. end
  569. end
  570. end
  571.  
  572.  
  573. coroutine.resume(coroutine.create(function()
  574. while wait() do
  575. for i = 1,50 do
  576. wait()
  577. for i,v in pairs(m:GetChildren()) do
  578. if v.ClassName == "Part" or v.ClassName == "Wedge" then
  579. v.Color = v.Color:lerp(Color3.fromRGB(85, 103, 34), 0.05)
  580. end
  581. end
  582. end
  583. for i = 1,50 do
  584. wait()
  585. for i,v in pairs(m:GetChildren()) do
  586. if v.ClassName == "Part" or v.ClassName == "Wedge" then
  587. v.Color = v.Color:lerp(Color3.fromRGB(85, 103, 34), 0.05)
  588. end
  589. end
  590. end
  591. for i = 1,50 do
  592. wait()
  593. for i,v in pairs(m:GetChildren()) do
  594. if v.ClassName == "Part" or v.ClassName == "Wedge" then
  595. v.Color = v.Color:lerp(Color3.fromRGB(85, 103, 34), 0.05)
  596. end
  597. end
  598. end
  599. end
  600. end))
  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.  
  913. local teem = false
  914.  
  915. function ears(key)
  916. if key == "t" and not teem then
  917. local teem2 = Instance.new("Sound",Character)
  918. teem2.SoundId = "rbxassetid://604650009"
  919. teem2.Volume = 10
  920. teem2:Play()
  921. wait(teem2.TimeLength)
  922. teem2:Destroy()
  923. end
  924. end
  925. Mouse.KeyDown:connect(ears)
  926.  
  927. function joj()
  928. while oof == true do
  929. attack = true
  930. local con = Hitbox.Touched:connect(function(hit)
  931. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  932. CFuncs.Sound.Create("604650009", Hitbox, 4, 1)
  933. for i = 0, 1, 0.1 do
  934. swait()
  935. PlayAnimationFromTable({
  936. 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),
  937. 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),
  938. 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),
  939. 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),
  940. 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),
  941. 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),
  942. }, .3, false)
  943. end
  944. for i = 0, 1, 0.1 do
  945. swait()
  946. PlayAnimationFromTable({
  947. 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),
  948. 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),
  949. 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),
  950. 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),
  951. 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),
  952. 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),
  953. }, .3, false)
  954. end
  955. con:Disconnect()
  956. attack = false
  957. end
  958. end
  959.  
  960. Mouse.Button1Down:connect(function()
  961. if attack == false and oof == false then
  962. oof = true
  963. joj()
  964. end
  965. end)
  966.  
  967.  
  968.  
  969. Mouse.Button1Up:connect(function()
  970. if attack == true and oof == true then
  971. oof = false
  972. end
  973. end)
  974.  
  975.  
  976.  
  977.  
  978. while true do
  979. swait()
  980. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  981. for i, v in pairs(Character:GetChildren()) do
  982. if v:IsA("Part") then
  983. v.Material = "SmoothPlastic"
  984. elseif v:IsA("Accessory") then
  985. v:WaitForChild("Handle").Material = "SmoothPlastic"
  986. end
  987. end
  988. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  989. velocity = RootPart.Velocity.y
  990. sine = sine + change
  991. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  992. if RootPart.Velocity.y > 1 and hit == nil then
  993. Anim = "Jump"
  994. if attack == false then
  995. PlayAnimationFromTable({
  996. 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),
  997. 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),
  998. 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),
  999. 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),
  1000. 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),
  1001. 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),
  1002. }, .3, false)
  1003. end
  1004. elseif RootPart.Velocity.y < -1 and hit == nil then
  1005. Anim = "Fall"
  1006. if attack == false then
  1007. PlayAnimationFromTable({
  1008. 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),
  1009. 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),
  1010. 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),
  1011. 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),
  1012. 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),
  1013. 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),
  1014. }, .3, false)
  1015. end
  1016. elseif Torsovelocity < 1 and hit ~= nil then
  1017. Anim = "Idle"
  1018. if attack == false then
  1019. change = 1
  1020. PlayAnimationFromTable({
  1021. 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),
  1022. 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),
  1023. 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),
  1024. 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),
  1025. 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),
  1026. 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),
  1027. }, .3, false)
  1028. end
  1029. elseif Torsovelocity > 2 and hit ~= nil then
  1030. Anim = "Walk"
  1031. if attack == false then
  1032. change = 2
  1033. PlayAnimationFromTable({
  1034. 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),
  1035. 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),
  1036. 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),
  1037. 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),
  1038. 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)),
  1039. 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)),
  1040. }, .3, false)
  1041. end
  1042. end
  1043. if 0 < #Effects then
  1044. for e = 1, #Effects do
  1045. if Effects[e] ~= nil then
  1046. local Thing = Effects[e]
  1047. if Thing ~= nil then
  1048. local Part = Thing[1]
  1049. local Mode = Thing[2]
  1050. local Delay = Thing[3]
  1051. local IncX = Thing[4]
  1052. local IncY = Thing[5]
  1053. local IncZ = Thing[6]
  1054. if Thing[2] == "Shoot" then
  1055. local Look = Thing[1]
  1056. local move = 5
  1057. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1058. if Thing[10] ~= nil then
  1059. da = pos
  1060. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1061. cfa = CFrame.new(Thing[4], pos)
  1062. tehCF = cfa:lerp(cf2, 0.2)
  1063. Thing[1] = tehCF.lookVector
  1064. end
  1065. local mag = (Thing[4] - pos).magnitude
  1066. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1067. 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)
  1068. Thing[4] = Thing[4] + Look * move
  1069. Thing[3] = Thing[3] - 1
  1070. if 2 < Thing[5] then
  1071. Thing[5] = Thing[5] - 0.3
  1072. Thing[6] = Thing[6] - 0.3
  1073. end
  1074. if hit ~= nil then
  1075. Thing[3] = 0
  1076. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1077. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1078. ref.Anchored = true
  1079. ref.CFrame = CFrame.new(pos)
  1080. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1081. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1082. game:GetService("Debris"):AddItem(ref, 1)
  1083. end
  1084. if Thing[3] <= 0 then
  1085. table.remove(Effects, e)
  1086. end
  1087. end
  1088. do
  1089. do
  1090. if Thing[2] == "FireWave" then
  1091. if Thing[3] <= Thing[4] then
  1092. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1093. Thing[3] = Thing[3] + 1
  1094. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1095. else
  1096. Part.Parent = nil
  1097. table.remove(Effects, e)
  1098. end
  1099. end
  1100. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1101. if Thing[1].Transparency <= 1 then
  1102. if Thing[2] == "Block1" then
  1103. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1104. Mesh = Thing[7]
  1105. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1106. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1107. else
  1108. if Thing[2] == "Block2" then
  1109. Thing[1].CFrame = Thing[1].CFrame
  1110. Mesh = Thing[7]
  1111. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1112. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1113. else
  1114. if Thing[2] == "Fire" then
  1115. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1116. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1117. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1118. else
  1119. if Thing[2] == "Cylinder" then
  1120. Mesh = Thing[7]
  1121. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1122. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1123. else
  1124. if Thing[2] == "Blood" then
  1125. Mesh = Thing[7]
  1126. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1127. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1128. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1129. else
  1130. if Thing[2] == "Elec" then
  1131. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1132. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1133. else
  1134. if Thing[2] == "Disappear" then
  1135. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1136. end
  1137. end
  1138. end
  1139. end
  1140. end
  1141. end
  1142. end
  1143. else
  1144. Part.Parent = nil
  1145. table.remove(Effects, e)
  1146. end
  1147. end
  1148. end
  1149. end
  1150. end
  1151. end
  1152. end
  1153. end
  1154. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement