Advertisement
Cute_Sylveon

Casual Sniper (Rbolox script) edit

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