Advertisement
uor

idktbh

uor
Aug 11th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.07 KB | None | 0 0
  1. Player = owner
  2. Character = Player.Character
  3. Humanoid = Character.Humanoid
  4. local txt = Instance.new("BillboardGui", Character)
  5. txt.Adornee = Character.Head
  6. txt.Name = "_status"
  7. txt.Size = UDim2.new(2, 0, 1.2, 0)
  8. txt.StudsOffset = Vector3.new(-9, 8, 0)
  9. local text = Instance.new("TextLabel", txt)
  10. text.Size = UDim2.new(10, 0, 7, 0)
  11. text.FontSize = "Size24"
  12. text.TextScaled = true
  13. text.TextTransparency = 0
  14. text.BackgroundTransparency = 1
  15. text.TextTransparency = 0
  16. text.TextStrokeTransparency = 0
  17. text.Font = "Antique"
  18. text.TextStrokeColor3 = Color3.new(196, 40, 28)
  19. text.Text = "Admin"
  20. Humanoid.MaxHealth = math.huge
  21. Humanoid.Health = math.huge
  22. -- This script has been converted to FE by iPxter
  23.  
  24.  
  25. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  26. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  27. do
  28. print("FE Compatibility code by the user 1000hack")
  29. script.Parent = Player.Character
  30.  
  31. --RemoteEvent for communicating
  32. local Event = Instance.new("RemoteEvent")
  33. Event.Name = "UserInput_Event"
  34.  
  35. --Fake event to make stuff like Mouse.KeyDown work
  36. local function fakeEvent()
  37. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  38. t.connect = t.Connect
  39. return t
  40. end
  41.  
  42. --Creating fake input objects with fake variables
  43. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  44. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  45. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  46. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  47. end}
  48. --Merged 2 functions into one by checking amount of arguments
  49. CAS.UnbindAction = CAS.BindAction
  50.  
  51. --This function will trigger the events that have been :Connect()'ed
  52. local function te(self,ev,...)
  53. local t = m[ev]
  54. if t and t._fakeEvent and t.Function then
  55. t.Function(...)
  56. end
  57. end
  58. m.TrigEvent = te
  59. UIS.TrigEvent = te
  60.  
  61. Event.OnServerEvent:Connect(function(plr,io)
  62. if plr~=Player then return end
  63. if io.isMouse then
  64. m.Target = io.Target
  65. m.Hit = io.Hit
  66. else
  67. local b = io.UserInputState == Enum.UserInputState.Begin
  68. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  69. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  70. end
  71. for _,t in pairs(CAS.Actions) do
  72. for _,k in pairs(t.Keys) do
  73. if k==io.KeyCode then
  74. t.Function(t.Name,io.UserInputState,io)
  75. end
  76. end
  77. end
  78. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  79. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  80. end
  81. end)
  82. Event.Parent = NLS([==[
  83. local Player = owner
  84. local Event = script:WaitForChild("UserInput_Event")
  85.  
  86. local UIS = game:GetService("UserInputService")
  87. local input = function(io,a)
  88. if a then return end
  89. --Since InputObject is a client-side instance, we create and pass table instead
  90. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  91. end
  92. UIS.InputBegan:Connect(input)
  93. UIS.InputEnded:Connect(input)
  94.  
  95. local Mouse = Player:GetMouse()
  96. local h,t
  97. --Give the server mouse data 30 times every second, but only if the values changed
  98. --If player is not moving their mouse, client won't fire events
  99. while wait(1/30) do
  100. if h~=Mouse.Hit or t~=Mouse.Target then
  101. h,t=Mouse.Hit,Mouse.Target
  102. Event:FireServer({isMouse=true,Target=t,Hit=h})
  103. end
  104. end]==],Player.Character)
  105. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  106. end
  107. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  108. wait(1 / 60)
  109. Effects = { }
  110. local Player = owner
  111. local Character = Player.Character
  112. local Humanoid = Character.Humanoid
  113. local m = Instance.new('Model', Character)
  114. m.Name = "WeaponModel"
  115. local LeftArm = Character["Left Arm"]
  116. local RightArm = Character["Right Arm"]
  117. local LeftLeg = Character["Left Leg"]
  118. local RightLeg = Character["Right Leg"]
  119. local Head = Character.Head
  120. local Torso = Character.Torso
  121. local cam = game.Workspace.CurrentCamera
  122. local RootPart = Character.HumanoidRootPart
  123. local RootJoint = RootPart.RootJoint
  124. local equipped = false
  125. local attack = false
  126. local Anim = 'Idle'
  127. local idle = 0
  128. local attacktype = 1
  129. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  130. local velocity = RootPart.Velocity.y
  131. local sine = 0
  132. local change = 1
  133. local grabbed = false
  134. local cn = CFrame.new
  135. local mr = math.rad
  136. local angles = CFrame.Angles
  137. local ud = UDim2.new
  138. local c3 = Color3.new
  139. Humanoid.MaxHealth = math.huge
  140. Humanoid.Health = math.huge
  141.  
  142. Humanoid.Animator.Parent = nil
  143. Character.Animate.Parent = nil
  144.  
  145. local newMotor = function(part0, part1, c0, c1)
  146. local w = Instance.new('Motor', part0)
  147. w.Part0 = part0
  148. w.Part1 = part1
  149. w.C0 = c0
  150. w.C1 = c1
  151. return w
  152. end
  153.  
  154. function clerp(a, b, t)
  155. return a:lerp(b, t)
  156. end
  157.  
  158. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  159. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  160.  
  161. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  162. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  163. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  164. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  165. RootJoint.C1 = CFrame.new(0, 0, 0)
  166. RootJoint.C0 = CFrame.new(0, 0, 0)
  167. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  168. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  169.  
  170. local rarmc1 = RW.C1
  171. local larmc1 = LW.C1
  172. local rlegc1 = RH.C1
  173. local llegc1 = LH.C1
  174.  
  175. local resetc1 = false
  176.  
  177. function PlayAnimationFromTable(table, speed, bool)
  178. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  179. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  180. RW.C0 = clerp(RW.C0, table[3], speed)
  181. LW.C0 = clerp(LW.C0, table[4], speed)
  182. RH.C0 = clerp(RH.C0, table[5], speed)
  183. LH.C0 = clerp(LH.C0, table[6], speed)
  184. if bool == true then
  185. if resetc1 == false then
  186. resetc1 = true
  187. RootJoint.C1 = RootJoint.C1
  188. Torso.Neck.C1 = Torso.Neck.C1
  189. RW.C1 = rarmc1
  190. LW.C1 = larmc1
  191. RH.C1 = rlegc1
  192. LH.C1 = llegc1
  193. end
  194. end
  195. end
  196.  
  197. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  198.  
  199. ArtificialHB = Instance.new("BindableEvent", script)
  200. ArtificialHB.Name = "Heartbeat"
  201.  
  202. script:WaitForChild("Heartbeat")
  203.  
  204. frame = 1 / 30
  205. tf = 0
  206. allowframeloss = false
  207. tossremainder = false
  208. lastframe = tick()
  209. script.Heartbeat:Fire()
  210.  
  211. game:GetService("RunService").Heartbeat:connect(function(s, p)
  212. tf = tf + s
  213. if tf >= frame then
  214. if allowframeloss then
  215. script.Heartbeat:Fire()
  216. lastframe = tick()
  217. else
  218. for i = 1, math.floor(tf / frame) do
  219. script.Heartbeat:Fire()
  220. end
  221. lastframe = tick()
  222. end
  223. if tossremainder then
  224. tf = 0
  225. else
  226. tf = tf - frame * math.floor(tf / frame)
  227. end
  228. end
  229. end)
  230.  
  231. function swait(num)
  232. if num == 0 or num == nil then
  233. ArtificialHB.Event:wait()
  234. else
  235. for i = 0, num do
  236. ArtificialHB.Event:wait()
  237. end
  238. end
  239. end
  240.  
  241. local RbxUtility = LoadLibrary("RbxUtility")
  242. local Create = RbxUtility.Create
  243.  
  244. function RemoveOutlines(part)
  245. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  246. end
  247.  
  248. CFuncs = {
  249. ["Part"] = {
  250. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  251. local Part = Create("Part"){
  252. Parent = Parent,
  253. Reflectance = Reflectance,
  254. Transparency = Transparency,
  255. CanCollide = false,
  256. Locked = true,
  257. BrickColor = BrickColor.new(tostring(BColor)),
  258. Name = Name,
  259. Size = Size,
  260. Material = Material,
  261. }
  262. RemoveOutlines(Part)
  263. return Part
  264. end;
  265. };
  266.  
  267. ["Mesh"] = {
  268. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  269. local Msh = Create(Mesh){
  270. Parent = Part,
  271. Offset = OffSet,
  272. Scale = Scale,
  273. }
  274. if Mesh == "SpecialMesh" then
  275. Msh.MeshType = MeshType
  276. Msh.MeshId = MeshId
  277. end
  278. return Msh
  279. end;
  280. };
  281.  
  282. ["Mesh"] = {
  283. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  284. local Msh = Create(Mesh){
  285. Parent = Part,
  286. Offset = OffSet,
  287. Scale = Scale,
  288. }
  289. if Mesh == "SpecialMesh" then
  290. Msh.MeshType = MeshType
  291. Msh.MeshId = MeshId
  292. end
  293. return Msh
  294. end;
  295. };
  296.  
  297. ["Weld"] = {
  298. Create = function(Parent, Part0, Part1, C0, C1)
  299. local Weld = Create("Weld"){
  300. Parent = Parent,
  301. Part0 = Part0,
  302. Part1 = Part1,
  303. C0 = C0,
  304. C1 = C1,
  305. }
  306. return Weld
  307. end;
  308. };
  309.  
  310. ["Sound"] = {
  311. Create = function(id, par, vol, pit)
  312. coroutine.resume(coroutine.create(function()
  313. local S = Create("Sound"){
  314. Volume = vol,
  315. Pitch = pit or 1,
  316. SoundId = id,
  317. Parent = par or workspace,
  318. }
  319. Instance.new("DistortionSoundEffect", S).Level = 1
  320. wait()
  321. S:play()
  322. game:GetService("Debris"):AddItem(S, 10)
  323. end))
  324. end;
  325. };
  326.  
  327. ["ParticleEmitter"] = {
  328. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  329. local fp = Create("ParticleEmitter"){
  330. Parent = Parent,
  331. Color = ColorSequence.new(Color1, Color2),
  332. LightEmission = LightEmission,
  333. Size = Size,
  334. Texture = Texture,
  335. Transparency = Transparency,
  336. ZOffset = ZOffset,
  337. Acceleration = Accel,
  338. Drag = Drag,
  339. LockedToPart = LockedToPart,
  340. VelocityInheritance = VelocityInheritance,
  341. EmissionDirection = EmissionDirection,
  342. Enabled = Enabled,
  343. Lifetime = LifeTime,
  344. Rate = Rate,
  345. Rotation = Rotation,
  346. RotSpeed = RotSpeed,
  347. Speed = Speed,
  348. VelocitySpread = VelocitySpread,
  349. }
  350. return fp
  351. end;
  352. };
  353. }
  354.  
  355. function rayCast(Position, Direction, Range, Ignore)
  356. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  357. end
  358.  
  359. local function GetNearest(obj, distance)
  360. local last, lastx = distance + 1
  361. for i, v in pairs(workspace:GetChildren()) do
  362. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  363. local t = v.Torso
  364. local dist = (t.Position - obj.Position).magnitude
  365. if dist <= distance then
  366. if dist < last then
  367. last = dist
  368. lastx = v
  369. end
  370. end
  371. end
  372. end
  373. return lastx
  374. end
  375.  
  376.  
  377. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  378.  
  379. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  380. for i, v in pairs(hit:GetChildren()) do
  381. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  382. local find = v:FindFirstChild("DebounceHit")
  383. if not find then
  384. if v.Parent:findFirstChild("Head") then
  385. local BillG = Create("BillboardGui"){
  386. Parent = v.Parent.Head,
  387. Size = UDim2.new(1, 0, 1, 0),
  388. Adornee = v.Parent.Head,
  389. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  390. }
  391. local TL = Create("TextLabel"){
  392. Parent = BillG,
  393. Size = UDim2.new(3, 3, 3, 3),
  394. BackgroundTransparency = 1,
  395. Text = tostring(damage).."-",
  396. TextColor3 = Color1.Color,
  397. TextStrokeColor3 = Color2.Color,
  398. TextStrokeTransparency = 0,
  399. TextXAlignment = Enum.TextXAlignment.Center,
  400. TextYAlignment = Enum.TextYAlignment.Center,
  401. FontSize = Enum.FontSize.Size18,
  402. Font = "ArialBold",
  403. }
  404. coroutine.resume(coroutine.create(function()
  405. swait(1)
  406. for i = 0, 1, .1 do
  407. swait(.1)
  408. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  409. end
  410. BillG:Destroy()
  411. end))
  412. end
  413. v.Health = v.Health - damage
  414. local bool = Create("BoolValue"){
  415. Parent = v,
  416. Name = "DebounceHit",
  417. }
  418. if HSound ~= nil and HPitch ~= nil then
  419. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  420. end
  421. game:GetService("Debris"):AddItem(bool, cooldown)
  422. end
  423. end
  424. end
  425. end
  426.  
  427. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  428. for _, c in pairs(workspace:children()) do
  429. local hum = c:findFirstChild("Humanoid")
  430. if hum ~= nil then
  431. local head = c:findFirstChild("Torso")
  432. if head ~= nil then
  433. local targ = head.Position - Part.Position
  434. local mag = targ.magnitude
  435. if mag <= magni and c.Name ~= Player.Name then
  436. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  437. end
  438. end
  439. end
  440. end
  441. end
  442.  
  443. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  444. 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))
  445. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  446. 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))
  447. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  448. 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))
  449. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
  450. 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))
  451. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
  452. Part.Mesh.TextureId = "rbxassetid://435840335"
  453.  
  454. EffectModel = Instance.new("Model", Character)
  455. EffectModel.Name = "Effects"
  456.  
  457. Effects = {
  458. ["Block"] = {
  459. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  460. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  461. prt.Anchored = true
  462. prt.CFrame = cframe
  463. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  464. game:GetService("Debris"):AddItem(prt, 10)
  465. if Type == 1 or Type == nil then
  466. table.insert(Effects, {
  467. prt,
  468. "Block1",
  469. delay,
  470. x3,
  471. y3,
  472. z3,
  473. msh
  474. })
  475. elseif Type == 2 then
  476. table.insert(Effects, {
  477. prt,
  478. "Block2",
  479. delay,
  480. x3,
  481. y3,
  482. z3,
  483. msh
  484. })
  485. end
  486. end;
  487. };
  488.  
  489. ["Cylinder"] = {
  490. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  491. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  492. prt.Anchored = true
  493. prt.CFrame = cframe
  494. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  495. game:GetService("Debris"):AddItem(prt, 2)
  496. Effects[#Effects + 1] = {
  497. prt,
  498. "Cylinder",
  499. delay,
  500. x3,
  501. y3,
  502. z3
  503. }
  504. end;
  505. };
  506.  
  507. ["Sphere"] = {
  508. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  509. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  510. prt.Anchored = true
  511. prt.CFrame = cframe
  512. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  513. game:GetService("Debris"):AddItem(prt, 10)
  514. table.insert(Effects, {
  515. prt,
  516. "Cylinder",
  517. delay,
  518. x3,
  519. y3,
  520. z3,
  521. msh
  522. })
  523. end;
  524. };
  525.  
  526. ["Elec"] = {
  527. Create = function(cff, x, y, z)
  528. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  529. prt.Anchored = true
  530. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  531. prt.CFrame = CFrame.new(prt.Position)
  532. game:GetService("Debris"):AddItem(prt, 2)
  533. local xval = math.random() / 2
  534. local yval = math.random() / 2
  535. local zval = math.random() / 2
  536. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  537. table.insert(Effects, {
  538. prt,
  539. "Elec",
  540. 0.1,
  541. x,
  542. y,
  543. z,
  544. xval,
  545. yval,
  546. zval
  547. })
  548. end;
  549.  
  550. };
  551.  
  552. ["Ring"] = {
  553. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  554. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  555. prt.Anchored = true
  556. prt.CFrame = cframe
  557. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  558. game:GetService("Debris"):AddItem(prt, 10)
  559. table.insert(Effects, {
  560. prt,
  561. "Cylinder",
  562. delay,
  563. x3,
  564. y3,
  565. z3,
  566. msh
  567. })
  568. end;
  569. };
  570.  
  571.  
  572. ["Wave"] = {
  573. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  574. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  575. prt.Anchored = true
  576. prt.CFrame = cframe
  577. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  578. game:GetService("Debris"):AddItem(prt, 10)
  579. table.insert(Effects, {
  580. prt,
  581. "Cylinder",
  582. delay,
  583. x3,
  584. y3,
  585. z3,
  586. msh
  587. })
  588. end;
  589. };
  590.  
  591. ["Break"] = {
  592. Create = function(brickcolor, cframe, x1, y1, z1)
  593. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  594. prt.Anchored = true
  595. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  596. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  597. local num = math.random(10, 50) / 1000
  598. game:GetService("Debris"):AddItem(prt, 10)
  599. table.insert(Effects, {
  600. prt,
  601. "Shatter",
  602. num,
  603. prt.CFrame,
  604. math.random() - math.random(),
  605. 0,
  606. math.random(50, 100) / 100
  607. })
  608. end;
  609. };
  610. }
  611.  
  612. Shoot2 = function(orgpos)
  613. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  614. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  615. table.insert(Effects, {
  616. MouseLook.lookVector,
  617. "Shoot2",
  618. 50,
  619. orgpos,
  620. 5,
  621. 7,
  622. 0,
  623. 1,
  624. 2
  625. })
  626. end
  627.  
  628. function attackone()
  629. attack = true
  630. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  631. for i = 0, 1, 0.025 do
  632. swait()
  633. PlayAnimationFromTable({
  634. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  635. 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),
  636. 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),
  637. 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),
  638. 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),
  639. 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),
  640. }, .3, false)
  641. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  642. end
  643. CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
  644. CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
  645. CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
  646. Shoot2(Barrel.Position)
  647. for i = 0, 1, 0.15 do
  648. swait()
  649. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  650. PlayAnimationFromTable({
  651. 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),
  652. 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),
  653. 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),
  654. 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),
  655. 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),
  656. 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),
  657. }, .6, false)
  658. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  659. end
  660. for i = 0, 1, 0.15 do
  661. swait()
  662. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  663. PlayAnimationFromTable({
  664. 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),
  665. 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),
  666. 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),
  667. 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),
  668. 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),
  669. 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),
  670. }, .2, false)
  671. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  672. end
  673. for i = 0, 1, 0.05 do
  674. swait()
  675. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  676. PlayAnimationFromTable({
  677. 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),
  678. 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),
  679. 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),
  680. 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),
  681. 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),
  682. 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),
  683. }, .3, false)
  684. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  685. end
  686. for i = 0, 1, 0.13 do
  687. swait()
  688. PlayAnimationFromTable({
  689. 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),
  690. 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),
  691. 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),
  692. 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),
  693. 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),
  694. 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),
  695. }, .3, false)
  696. end
  697. attack = false
  698. end
  699.  
  700. --[[Attacks]]--
  701.  
  702. mouse.Button1Down:connect(function()
  703. if attack == false and attacktype == 1 then
  704. attackone()
  705. end
  706. end)
  707.  
  708. mouse.KeyDown:connect(function(k)
  709. k = k:lower()
  710. if attack == false and k == '' then
  711.  
  712. end
  713. end)
  714.  
  715. while true do
  716. swait()
  717. for i, v in pairs(Character:GetChildren()) do
  718. if v:IsA("Part") then
  719. v.Material = "SmoothPlastic"
  720. elseif v:IsA("Accessory") then
  721. v:WaitForChild("Handle").Material = "SmoothPlastic"
  722. end
  723. end
  724. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  725. velocity = RootPart.Velocity.y
  726. sine = sine + change
  727. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  728. if equipped == true or equipped == false then
  729. if RootPart.Velocity.y > 1 and hit == nil then
  730. Anim = "Jump"
  731. if attack == false then
  732. PlayAnimationFromTable({
  733. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  734. 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),
  735. 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),
  736. 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),
  737. 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),
  738. 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),
  739. }, .3, false)
  740. end
  741. elseif RootPart.Velocity.y < -1 and hit == nil then
  742. Anim = "Fall"
  743. if attack == false then
  744. PlayAnimationFromTable({
  745. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  746. 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),
  747. 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),
  748. 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),
  749. 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),
  750. 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),
  751. }, .3, false)
  752. end
  753. elseif Torsovelocity < 1 and hit ~= nil then
  754. Anim = "Idle"
  755. if attack == false then
  756. change = 1
  757. PlayAnimationFromTable({
  758. 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),
  759. 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),
  760. 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),
  761. 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),
  762. 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),
  763. 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),
  764. }, .3, false)
  765. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  766. end
  767. elseif Torsovelocity > 2 and hit ~= nil then
  768. Anim = "Walk"
  769. if attack == false then
  770. change = 3
  771. PlayAnimationFromTable({
  772. 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),
  773. 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),
  774. 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),
  775. 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),
  776. 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)),
  777. 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)),
  778. }, .3, false)
  779. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  780. end
  781. end
  782. end
  783. if 0 < #Effects then
  784. for e = 1, #Effects do
  785. if Effects[e] ~= nil then
  786. local Thing = Effects[e]
  787. if Thing ~= nil then
  788. local Part = Thing[1]
  789. local Mode = Thing[2]
  790. local Delay = Thing[3]
  791. local IncX = Thing[4]
  792. local IncY = Thing[5]
  793. local IncZ = Thing[6]
  794. if Thing[2] == "Shoot" then
  795. local Look = Thing[1]
  796. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  797. local mag = (Thing[4] - pos).magnitude
  798. Thing[9] = Thing[9] + 0.5
  799. Thing[5] = Thing[5] + 0.2
  800. Thing[6] = Thing[6] + 0.2
  801. 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)
  802. Thing[4] = Thing[4] + Look * 15
  803. Thing[3] = Thing[3] - 1
  804. if hit ~= nil then
  805. Thing[3] = 0
  806. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  807. ref.Anchored = true
  808. ref.CFrame = CFrame.new(pos)
  809. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  810. CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
  811. game:GetService("Debris"):AddItem(ref, 1)
  812. end
  813. if Thing[3] <= 0 then
  814. table.remove(Effects, e)
  815. end
  816. end
  817. do
  818. if Thing[2] == "Shoot2" then
  819. local Look = Thing[1]
  820. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  821. local mag = (Thing[4] - pos).magnitude
  822. Thing[9] = Thing[9] + 0.5
  823. Thing[5] = Thing[5] + 0.2
  824. Thing[6] = Thing[6] + 0.2
  825. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  826. Thing[4] = Thing[4] + Look * 3
  827. Thing[3] = Thing[3] + 5
  828. if hit ~= nil then
  829. Thing[3] = 0
  830. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  831. ref.Anchored = true
  832. ref.CFrame = CFrame.new(pos)
  833. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  834. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  835. Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  836. Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  837. CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
  838. CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
  839. CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
  840. local e = Instance.new("Explosion", ref)
  841. e.Position = ref.Position
  842. e.BlastRadius = 10
  843. e.DestroyJointRadiusPercent = 20
  844. e.Visible = false
  845. e.ExplosionType = "CratersAndDebris"
  846. game:GetService("Debris"):AddItem(ref, 10)
  847. end
  848. if Thing[3] <= 0 then
  849. table.remove(Effects, e)
  850. end
  851. end
  852. do
  853. do
  854. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  855. if Thing[1].Transparency <= 1 then
  856. if Thing[2] == "Block1" then
  857. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  858. Mesh = Thing[7]
  859. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  860. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  861. else
  862. if Thing[2] == "Block2" then
  863. Thing[1].CFrame = Thing[1].CFrame
  864. Mesh = Thing[7]
  865. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  866. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  867. else
  868. if Thing[2] == "Block3" then
  869. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  870. Mesh = Thing[7]
  871. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  872. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  873. else
  874. if Thing[2] == "Cylinder" then
  875. Mesh = Thing[7]
  876. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  877. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  878. else
  879. if Thing[2] == "Cylinder2" then
  880. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  881. Mesh = Thing[7]
  882. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  883. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  884. else
  885. if Thing[2] == "Blood" then
  886. Mesh = Thing[7]
  887. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  888. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  889. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  890. else
  891. if Thing[2] == "Elec" then
  892. Mesh = Thing[10]
  893. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  894. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  895. else
  896. if Thing[2] == "Disappear" then
  897. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  898. end
  899. end
  900. end
  901. end
  902. end
  903. end
  904. end
  905. end
  906. else
  907. Part.Parent = nil
  908. table.remove(Effects, e)
  909. end
  910. end
  911. end
  912. end
  913. end
  914. end
  915. end
  916. end
  917. end
  918. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement