Advertisement
PPIIZZZZAAA

h

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