Advertisement
TheYoutuber_Pro

t

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