uor

idkopgoldenidk

uor
Aug 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.99 KB | None | 0 0
  1. https://pastebin.com/raw/isTT4GLkhttps://pastebin.com/raw/isTT4GLk-- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by the user 1000hack")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  87. wait(1 / 60)
  88. Effects = { }
  89. local Player = owner
  90. local Character = Player.Character
  91. local Humanoid = Character.Humanoid
  92. local m = Instance.new('Model', Character)
  93. m.Name = "WeaponModel"
  94. local LeftArm = Character["Left Arm"]
  95. local RightArm = Character["Right Arm"]
  96. local LeftLeg = Character["Left Leg"]
  97. local RightLeg = Character["Right Leg"]
  98. local Head = Character.Head
  99. local Torso = Character.Torso
  100. local cam = game.Workspace.CurrentCamera
  101. local RootPart = Character.HumanoidRootPart
  102. local RootJoint = RootPart.RootJoint
  103. local equipped = false
  104. local attack = false
  105. local Anim = 'Idle'
  106. local idle = 0
  107. local attacktype = 1
  108. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  109. local velocity = RootPart.Velocity.y
  110. local sine = 0
  111. local change = 1
  112. local grabbed = false
  113. local cn = CFrame.new
  114. local mr = math.rad
  115. local angles = CFrame.Angles
  116. local ud = UDim2.new
  117. local c3 = Color3.new
  118. Humanoid.MaxHealth = math.huge
  119. Humanoid.Health = math.huge
  120. ff = Instance.new("ForceField", Character)
  121. ff.Visible = false
  122.  
  123. Humanoid.Animator.Parent = nil
  124. Character.Animate.Parent = nil
  125.  
  126. local newMotor = function(part0, part1, c0, c1)
  127. local w = Instance.new('Motor', part0)
  128. w.Part0 = part0
  129. w.Part1 = part1
  130. w.C0 = c0
  131. w.C1 = c1
  132. return w
  133. end
  134.  
  135. function clerp(a, b, t)
  136. return a:lerp(b, t)
  137. end
  138.  
  139. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  140. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  141.  
  142. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  143. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  144. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  145. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  146. RootJoint.C1 = CFrame.new(0, 0, 0)
  147. RootJoint.C0 = CFrame.new(0, 0, 0)
  148. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  149. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  150.  
  151. local rarmc1 = RW.C1
  152. local larmc1 = LW.C1
  153. local rlegc1 = RH.C1
  154. local llegc1 = LH.C1
  155.  
  156. local resetc1 = false
  157.  
  158. function PlayAnimationFromTable(table, speed, bool)
  159. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  160. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  161. RW.C0 = clerp(RW.C0, table[3], speed)
  162. LW.C0 = clerp(LW.C0, table[4], speed)
  163. RH.C0 = clerp(RH.C0, table[5], speed)
  164. LH.C0 = clerp(LH.C0, table[6], speed)
  165. if bool == true then
  166. if resetc1 == false then
  167. resetc1 = true
  168. RootJoint.C1 = RootJoint.C1
  169. Torso.Neck.C1 = Torso.Neck.C1
  170. RW.C1 = rarmc1
  171. LW.C1 = larmc1
  172. RH.C1 = rlegc1
  173. LH.C1 = llegc1
  174. end
  175. end
  176. end
  177.  
  178. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  179.  
  180. ArtificialHB = Instance.new("BindableEvent", script)
  181. ArtificialHB.Name = "Heartbeat"
  182.  
  183. script:WaitForChild("Heartbeat")
  184.  
  185. frame = 1 / 30
  186. tf = 0
  187. allowframeloss = false
  188. tossremainder = false
  189. lastframe = tick()
  190. script.Heartbeat:Fire()
  191.  
  192. game:GetService("RunService").Heartbeat:connect(function(s, p)
  193. tf = tf + s
  194. if tf >= frame then
  195. if allowframeloss then
  196. script.Heartbeat:Fire()
  197. lastframe = tick()
  198. else
  199. for i = 1, math.floor(tf / frame) do
  200. script.Heartbeat:Fire()
  201. end
  202. lastframe = tick()
  203. end
  204. if tossremainder then
  205. tf = 0
  206. else
  207. tf = tf - frame * math.floor(tf / frame)
  208. end
  209. end
  210. end)
  211.  
  212. function swait(num)
  213. if num == 0 or num == nil then
  214. ArtificialHB.Event:wait()
  215. else
  216. for i = 0, num do
  217. ArtificialHB.Event:wait()
  218. end
  219. end
  220. end
  221.  
  222. local RbxUtility = LoadLibrary("RbxUtility")
  223. local Create = RbxUtility.Create
  224.  
  225. function RemoveOutlines(part)
  226. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  227. end
  228.  
  229. CFuncs = {
  230. ["Part"] = {
  231. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  232. local Part = Create("Part"){
  233. Parent = Parent,
  234. Reflectance = Reflectance,
  235. Transparency = Transparency,
  236. CanCollide = false,
  237. Locked = true,
  238. BrickColor = BrickColor.new(tostring(BColor)),
  239. Name = Name,
  240. Size = Size,
  241. Material = Material,
  242. }
  243. RemoveOutlines(Part)
  244. return Part
  245. end;
  246. };
  247.  
  248. ["Mesh"] = {
  249. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  250. local Msh = Create(Mesh){
  251. Parent = Part,
  252. Offset = OffSet,
  253. Scale = Scale,
  254. }
  255. if Mesh == "SpecialMesh" then
  256. Msh.MeshType = MeshType
  257. Msh.MeshId = MeshId
  258. end
  259. return Msh
  260. end;
  261. };
  262.  
  263. ["Mesh"] = {
  264. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  265. local Msh = Create(Mesh){
  266. Parent = Part,
  267. Offset = OffSet,
  268. Scale = Scale,
  269. }
  270. if Mesh == "SpecialMesh" then
  271. Msh.MeshType = MeshType
  272. Msh.MeshId = MeshId
  273. end
  274. return Msh
  275. end;
  276. };
  277.  
  278. ["Weld"] = {
  279. Create = function(Parent, Part0, Part1, C0, C1)
  280. local Weld = Create("Weld"){
  281. Parent = Parent,
  282. Part0 = Part0,
  283. Part1 = Part1,
  284. C0 = C0,
  285. C1 = C1,
  286. }
  287. return Weld
  288. end;
  289. };
  290.  
  291. ["Sound"] = {
  292. Create = function(id, par, vol, pit)
  293. coroutine.resume(coroutine.create(function()
  294. local S = Create("Sound"){
  295. Volume = vol,
  296. Pitch = pit or 1,
  297. SoundId = id,
  298. Parent = par or workspace,
  299. }
  300. Instance.new("DistortionSoundEffect", S).Level = 1
  301. wait()
  302. S:play()
  303. game:GetService("Debris"):AddItem(S, 10)
  304. end))
  305. end;
  306. };
  307.  
  308. ["ParticleEmitter"] = {
  309. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  310. local fp = Create("ParticleEmitter"){
  311. Parent = Parent,
  312. Color = ColorSequence.new(Color1, Color2),
  313. LightEmission = LightEmission,
  314. Size = Size,
  315. Texture = Texture,
  316. Transparency = Transparency,
  317. ZOffset = ZOffset,
  318. Acceleration = Accel,
  319. Drag = Drag,
  320. LockedToPart = LockedToPart,
  321. VelocityInheritance = VelocityInheritance,
  322. EmissionDirection = EmissionDirection,
  323. Enabled = Enabled,
  324. Lifetime = LifeTime,
  325. Rate = Rate,
  326. Rotation = Rotation,
  327. RotSpeed = RotSpeed,
  328. Speed = Speed,
  329. VelocitySpread = VelocitySpread,
  330. }
  331. return fp
  332. end;
  333. };
  334. }
  335.  
  336. function rayCast(Position, Direction, Range, Ignore)
  337. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  338. end
  339.  
  340. local function GetNearest(obj, distance)
  341. local last, lastx = distance + 1
  342. for i, v in pairs(workspace:GetChildren()) do
  343. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  344. local t = v.Torso
  345. local dist = (t.Position - obj.Position).magnitude
  346. if dist <= distance then
  347. if dist < last then
  348. last = dist
  349. lastx = v
  350. end
  351. end
  352. end
  353. end
  354. return lastx
  355. end
  356.  
  357.  
  358. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  359.  
  360. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  361. for i, v in pairs(hit:GetChildren()) do
  362. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  363. local find = v:FindFirstChild("DebounceHit")
  364. if not find then
  365. if v.Parent:findFirstChild("Head") then
  366. local BillG = Create("BillboardGui"){
  367. Parent = v.Parent.Head,
  368. Size = UDim2.new(1, 0, 1, 0),
  369. Adornee = v.Parent.Head,
  370. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  371. }
  372. local TL = Create("TextLabel"){
  373. Parent = BillG,
  374. Size = UDim2.new(3, 3, 3, 3),
  375. BackgroundTransparency = 1,
  376. Text = tostring(damage).."-",
  377. TextColor3 = Color1.Color,
  378. TextStrokeColor3 = Color2.Color,
  379. TextStrokeTransparency = 0,
  380. TextXAlignment = Enum.TextXAlignment.Center,
  381. TextYAlignment = Enum.TextYAlignment.Center,
  382. FontSize = Enum.FontSize.Size18,
  383. Font = "ArialBold",
  384. }
  385. coroutine.resume(coroutine.create(function()
  386. swait(1)
  387. for i = 0, 1, .1 do
  388. swait(.1)
  389. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  390. end
  391. BillG:Destroy()
  392. end))
  393. end
  394. v.Health = v.Health - damage
  395. local bool = Create("BoolValue"){
  396. Parent = v,
  397. Name = "DebounceHit",
  398. }
  399. if HSound ~= nil and HPitch ~= nil then
  400. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  401. end
  402. game:GetService("Debris"):AddItem(bool, cooldown)
  403. end
  404. end
  405. end
  406. end
  407.  
  408. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  409. for _, c in pairs(workspace:children()) do
  410. local hum = c:findFirstChild("Humanoid")
  411. if hum ~= nil then
  412. local head = c:findFirstChild("Torso")
  413. if head ~= nil then
  414. local targ = head.Position - Part.Position
  415. local mag = targ.magnitude
  416. if mag <= magni and c.Name ~= Player.Name then
  417. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  418. end
  419. end
  420. end
  421. end
  422. end
  423.  
  424. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  425. 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.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  426. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  427. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  428. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  429. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  430. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
  431. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.300000191, -0.400000095, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  432. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
  433. Part.Mesh.TextureId = "rbxassetid://435840335"
  434.  
  435. EffectModel = Instance.new("Model", Character)
  436. EffectModel.Name = "Effects"
  437.  
  438. Effects = {
  439. ["Block"] = {
  440. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  441. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  442. prt.Anchored = true
  443. prt.CFrame = cframe
  444. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  445. game:GetService("Debris"):AddItem(prt, 10)
  446. if Type == 1 or Type == nil then
  447. table.insert(Effects, {
  448. prt,
  449. "Block1",
  450. delay,
  451. x3,
  452. y3,
  453. z3,
  454. msh
  455. })
  456. elseif Type == 2 then
  457. table.insert(Effects, {
  458. prt,
  459. "Block2",
  460. delay,
  461. x3,
  462. y3,
  463. z3,
  464. msh
  465. })
  466. end
  467. end;
  468. };
  469.  
  470. ["Cylinder"] = {
  471. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  472. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  473. prt.Anchored = true
  474. prt.CFrame = cframe
  475. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  476. game:GetService("Debris"):AddItem(prt, 2)
  477. Effects[#Effects + 1] = {
  478. prt,
  479. "Cylinder",
  480. delay,
  481. x3,
  482. y3,
  483. z3
  484. }
  485. end;
  486. };
  487.  
  488. ["Sphere"] = {
  489. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  490. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  491. prt.Anchored = true
  492. prt.CFrame = cframe
  493. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  494. game:GetService("Debris"):AddItem(prt, 10)
  495. table.insert(Effects, {
  496. prt,
  497. "Cylinder",
  498. delay,
  499. x3,
  500. y3,
  501. z3,
  502. msh
  503. })
  504. end;
  505. };
  506.  
  507. ["Elec"] = {
  508. Create = function(cff, x, y, z)
  509. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  510. prt.Anchored = true
  511. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  512. prt.CFrame = CFrame.new(prt.Position)
  513. game:GetService("Debris"):AddItem(prt, 2)
  514. local xval = math.random() / 2
  515. local yval = math.random() / 2
  516. local zval = math.random() / 2
  517. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  518. table.insert(Effects, {
  519. prt,
  520. "Elec",
  521. 0.1,
  522. x,
  523. y,
  524. z,
  525. xval,
  526. yval,
  527. zval
  528. })
  529. end;
  530.  
  531. };
  532.  
  533. ["Ring"] = {
  534. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  535. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  536. prt.Anchored = true
  537. prt.CFrame = cframe
  538. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  539. game:GetService("Debris"):AddItem(prt, 10)
  540. table.insert(Effects, {
  541. prt,
  542. "Cylinder",
  543. delay,
  544. x3,
  545. y3,
  546. z3,
  547. msh
  548. })
  549. end;
  550. };
  551.  
  552.  
  553. ["Wave"] = {
  554. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  555. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  556. prt.Anchored = true
  557. prt.CFrame = cframe
  558. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  559. game:GetService("Debris"):AddItem(prt, 10)
  560. table.insert(Effects, {
  561. prt,
  562. "Cylinder",
  563. delay,
  564. x3,
  565. y3,
  566. z3,
  567. msh
  568. })
  569. end;
  570. };
  571.  
  572. ["Break"] = {
  573. Create = function(brickcolor, cframe, x1, y1, z1)
  574. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  575. prt.Anchored = true
  576. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  577. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  578. local num = math.random(10, 50) / 1000
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. table.insert(Effects, {
  581. prt,
  582. "Shatter",
  583. num,
  584. prt.CFrame,
  585. math.random() - math.random(),
  586. 0,
  587. math.random(50, 100) / 100
  588. })
  589. end;
  590. };
  591. }
  592.  
  593. Shoot2 = function(orgpos)
  594. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  595. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  596. table.insert(Effects, {
  597. MouseLook.lookVector,
  598. "Shoot2",
  599. 50,
  600. orgpos,
  601. 5,
  602. 7,
  603. 0,
  604. 1,
  605. 2
  606. })
  607. end
  608.  
  609. function attackone()
  610. attack = true
  611. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  612. for i = 0, 1, 0.025 do
  613. swait()
  614. PlayAnimationFromTable({
  615. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  616. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  617. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  618. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  619. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  620. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  621. }, .3, false)
  622. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  623. end
  624. CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
  625. CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
  626. CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
  627. Shoot2(Barrel.Position)
  628. for i = 0, 1, 0.15 do
  629. swait()
  630. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  631. PlayAnimationFromTable({
  632. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  633. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  634. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  635. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  636. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  637. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  638. }, .6, false)
  639. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  640. end
  641. for i = 0, 1, 0.15 do
  642. swait()
  643. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  644. PlayAnimationFromTable({
  645. CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  646. CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  647. CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  648. CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  649. CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  650. CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  651. }, .2, false)
  652. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  653. end
  654. for i = 0, 1, 0.05 do
  655. swait()
  656. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  657. PlayAnimationFromTable({
  658. CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  659. CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  660. CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  661. CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  662. CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  663. CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  664. }, .3, false)
  665. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  666. end
  667. for i = 0, 1, 0.13 do
  668. swait()
  669. PlayAnimationFromTable({
  670. CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  671. CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  672. CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  673. CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  674. CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  675. CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  676. }, .3, false)
  677. end
  678. attack = false
  679. end
  680.  
  681. --[[Attacks]]--
  682.  
  683. mouse.Button1Down:connect(function()
  684. if attack == false and attacktype == 1 then
  685. attackone()
  686. end
  687. end)
  688.  
  689. mouse.KeyDown:connect(function(k)
  690. k = k:lower()
  691. if attack == false and k == '' then
  692.  
  693. end
  694. end)
  695.  
  696. while true do
  697. swait()
  698. for i, v in pairs(Character:GetChildren()) do
  699. if v:IsA("Part") then
  700. v.Material = "SmoothPlastic"
  701. elseif v:IsA("Accessory") then
  702. v:WaitForChild("Handle").Material = "SmoothPlastic"
  703. end
  704. end
  705. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  706. velocity = RootPart.Velocity.y
  707. sine = sine + change
  708. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  709. if equipped == true or equipped == false then
  710. if RootPart.Velocity.y > 1 and hit == nil then
  711. Anim = "Jump"
  712. if attack == false then
  713. PlayAnimationFromTable({
  714. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  715. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  716. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  717. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  718. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  719. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  720. }, .3, false)
  721. end
  722. elseif RootPart.Velocity.y < -1 and hit == nil then
  723. Anim = "Fall"
  724. if attack == false then
  725. PlayAnimationFromTable({
  726. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  727. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  728. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  729. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  730. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  731. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  732. }, .3, false)
  733. end
  734. elseif Torsovelocity < 1 and hit ~= nil then
  735. Anim = "Idle"
  736. if attack == false then
  737. change = 1
  738. PlayAnimationFromTable({
  739. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  740. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  741. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  742. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  743. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  744. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  745. }, .3, false)
  746. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  747. end
  748. elseif Torsovelocity > 2 and hit ~= nil then
  749. Anim = "Walk"
  750. if attack == false then
  751. change = 3
  752. PlayAnimationFromTable({
  753. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  754. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  755. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  756. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  757. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  758. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  759. }, .3, false)
  760. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  761. end
  762. end
  763. end
  764. if 0 < #Effects then
  765. for e = 1, #Effects do
  766. if Effects[e] ~= nil then
  767. local Thing = Effects[e]
  768. if Thing ~= nil then
  769. local Part = Thing[1]
  770. local Mode = Thing[2]
  771. local Delay = Thing[3]
  772. local IncX = Thing[4]
  773. local IncY = Thing[5]
  774. local IncZ = Thing[6]
  775. if Thing[2] == "Shoot" then
  776. local Look = Thing[1]
  777. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  778. local mag = (Thing[4] - pos).magnitude
  779. Thing[9] = Thing[9] + 0.5
  780. Thing[5] = Thing[5] + 0.2
  781. Thing[6] = Thing[6] + 0.2
  782. Effects["Cylinder"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  783. Thing[4] = Thing[4] + Look * 15
  784. Thing[3] = Thing[3] - 1
  785. if hit ~= nil then
  786. Thing[3] = 0
  787. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  788. ref.Anchored = true
  789. ref.CFrame = CFrame.new(pos)
  790. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  791. CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
  792. game:GetService("Debris"):AddItem(ref, 1)
  793. end
  794. if Thing[3] <= 0 then
  795. table.remove(Effects, e)
  796. end
  797. end
  798. do
  799. if Thing[2] == "Shoot2" then
  800. local Look = Thing[1]
  801. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  802. local mag = (Thing[4] - pos).magnitude
  803. Thing[9] = Thing[9] + 0.5
  804. Thing[5] = Thing[5] + 0.2
  805. Thing[6] = Thing[6] + 0.2
  806. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  807. Thing[4] = Thing[4] + Look * 3
  808. Thing[3] = Thing[3] + 5
  809. if hit ~= nil then
  810. Thing[3] = 0
  811. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  812. ref.Anchored = true
  813. ref.CFrame = CFrame.new(pos)
  814. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  815. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  816. Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  817. Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  818. CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
  819. CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
  820. CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
  821. local e = Instance.new("Explosion", ref)
  822. e.Position = ref.Position
  823. e.BlastRadius = 100
  824. e.DestroyJointRadiusPercent = 20
  825. e.Visible = false
  826. e.ExplosionType = "CratersAndDebris"
  827. game:GetService("Debris"):AddItem(ref, 10)
  828. e.Humanoid:ClearAllChildren
  829. end
  830. if Thing[3] <= 0 then
  831. table.remove(Effects, e)
  832. end
  833. end
  834. do
  835. do
  836. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  837. if Thing[1].Transparency <= 1 then
  838. if Thing[2] == "Block1" then
  839. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  840. Mesh = Thing[7]
  841. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  842. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  843. else
  844. if Thing[2] == "Block2" then
  845. Thing[1].CFrame = Thing[1].CFrame
  846. Mesh = Thing[7]
  847. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  848. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  849. else
  850. if Thing[2] == "Block3" then
  851. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  852. Mesh = Thing[7]
  853. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  854. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  855. else
  856. if Thing[2] == "Cylinder" then
  857. Mesh = Thing[7]
  858. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  859. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  860. else
  861. if Thing[2] == "Cylinder2" then
  862. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  863. Mesh = Thing[7]
  864. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  865. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  866. else
  867. if Thing[2] == "Blood" then
  868. Mesh = Thing[7]
  869. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  870. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  871. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  872. else
  873. if Thing[2] == "Elec" then
  874. Mesh = Thing[10]
  875. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  876. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  877. else
  878. if Thing[2] == "Disappear" then
  879. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  880. end
  881. end
  882. end
  883. end
  884. end
  885. end
  886. end
  887. end
  888. else
  889. Part.Parent = nil
  890. table.remove(Effects, e)
  891. end
  892. end
  893. end
  894. end
  895. end
  896. end
  897. end
  898. end
  899. end
  900. end
  901. godmode = coroutine.wrap(function()
  902. for i,v in pairs(Character:GetChildren()) do
  903. if v:IsA("BasePart") and v ~= Root then
  904. v.Anchored = false
  905. end
  906. end
  907. while true do
  908. hum.MaxHealth = math.huge
  909. wait(0.0000001)
  910. hum.Health = math.huge
  911. wait()
  912. end
  913. end)
  914. godmode()
  915. ff = Instance.new("ForceField", Character)
  916. ff.Visible = false
  917.  
  918. coroutine.wrap(function()
  919. for i,v in pairs(Character:GetChildren()) do
  920. if v.Name == "Animate" then Print("hi")
  921. end
  922. end
  923. end)()
  924. end
  925. end)
Add Comment
Please, Sign In to add comment