EARTHWORM_SALLY

asasa

Jul 13th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. CV="Black"
  105.  
  106. p = owner
  107. char = p.Character
  108. local txt = Instance.new("BillboardGui", char)
  109. txt.Adornee = char .Head
  110. txt.Name = "_status"
  111. txt.Size = UDim2.new(2, 0, 1.2, 0)
  112. txt.StudsOffset = Vector3.new(-9, 8, 0)
  113. local text = Instance.new("TextLabel", txt)
  114. text.Size = UDim2.new(10, 0, 7, 0)
  115. text.FontSize = "Size24"
  116. text.TextScaled = true
  117. text.TextTransparency = 0
  118. text.BackgroundTransparency = 1
  119. text.TextTransparency = 0
  120. text.TextStrokeTransparency = 1
  121. text.Font = "Arcade"
  122. text.TextStrokeColor3 = Color3.new(255,255,0)
  123.  
  124. v=Instance.new("Part")
  125. v.Name = "ColorBrick"
  126. v.Parent=p.Character
  127. v.FormFactor="Symmetric"
  128. v.Anchored=true
  129. v.CanCollide=false
  130. v.BottomSurface="Smooth"
  131. v.TopSurface="Smooth"
  132. v.Size=Vector3.new(10,50,3)
  133. v.Transparency=1
  134. v.CFrame=char.Torso.CFrame
  135. v.BrickColor=BrickColor.new(CV)
  136. v.Transparency=1
  137. text.TextColor3 = Color3.new(0,255,255)
  138. v.Shape="Block"
  139. text.Text = "SOME IDIOT WITH A SHOTGUN"
  140. wait(1 / 60)
  141. Effects = { }
  142. local Player = owner
  143. local Character = Player.Character
  144. local Humanoid = Character.Humanoid
  145. local m = Instance.new('Model', Character)
  146. m.Name = "WeaponModel"
  147. local LeftArm = Character["Left Arm"]
  148. local RightArm = Character["Right Arm"]
  149. local LeftLeg = Character["Left Leg"]
  150. local RightLeg = Character["Right Leg"]
  151. local Head = Character.Head
  152. local Torso = Character.Torso
  153. local cam = game.Workspace.CurrentCamera
  154. local RootPart = Character.HumanoidRootPart
  155. local RootJoint = RootPart.RootJoint
  156. local equipped = false
  157. local attack = false
  158. local Anim = 'Idle'
  159. local idle = 0
  160. local attacktype = 1
  161. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  162. local velocity = RootPart.Velocity.y
  163. local sine = 0
  164. local change = 1
  165. local grabbed = false
  166. local cn = CFrame.new
  167. local mr = math.rad
  168. local angles = CFrame.Angles
  169. local ud = UDim2.new
  170. local c3 = Color3.new
  171. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  172. local s = Instance.new("Sound",Character)
  173. s.Name = "BGMusic"
  174. s.SoundId = "rbxassetid://257575717"
  175. s.Pitch = 1
  176. s.Volume = 0.25
  177. s.Looped = true
  178. s.archivable = false
  179. wait(0.1)
  180. s:play()
  181.  
  182. Humanoid.Animator.Parent = nil
  183. Character.Animate.Parent = nil
  184.  
  185. local newMotor = function(part0, part1, c0, c1)
  186. local w = Instance.new('Motor', part0)
  187. w.Part0 = part0
  188. w.Part1 = part1
  189. w.C0 = c0
  190. w.C1 = c1
  191. return w
  192. end
  193.  
  194. function clerp(a, b, t)
  195. return a:lerp(b, t)
  196. end
  197.  
  198. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  199. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  200.  
  201. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  202. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  203. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  204. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  205. RootJoint.C1 = CFrame.new(0, 0, 0)
  206. RootJoint.C0 = CFrame.new(0, 0, 0)
  207. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  208. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  209.  
  210. local rarmc1 = RW.C1
  211. local larmc1 = LW.C1
  212. local rlegc1 = RH.C1
  213. local llegc1 = LH.C1
  214.  
  215. local resetc1 = false
  216.  
  217. function PlayAnimationFromTable(table, speed, bool)
  218. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  219. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  220. RW.C0 = clerp(RW.C0, table[3], speed)
  221. LW.C0 = clerp(LW.C0, table[4], speed)
  222. RH.C0 = clerp(RH.C0, table[5], speed)
  223. LH.C0 = clerp(LH.C0, table[6], speed)
  224. if bool == true then
  225. if resetc1 == false then
  226. resetc1 = true
  227. RootJoint.C1 = RootJoint.C1
  228. Torso.Neck.C1 = Torso.Neck.C1
  229. RW.C1 = rarmc1
  230. LW.C1 = larmc1
  231. RH.C1 = rlegc1
  232. LH.C1 = llegc1
  233. end
  234. end
  235. end
  236.  
  237. Char = char
  238.  
  239. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  240.  
  241. ArtificialHB = Instance.new("BindableEvent", script)
  242. ArtificialHB.Name = "Heartbeat"
  243.  
  244. script:WaitForChild("Heartbeat")
  245.  
  246. frame = 1 / 30
  247. tf = 0
  248. allowframeloss = false
  249. tossremainder = false
  250. lastframe = tick()
  251. script.Heartbeat:Fire()
  252.  
  253. game:GetService("RunService").Heartbeat:connect(function(s, p)
  254. tf = tf + s
  255. if tf >= frame then
  256. if allowframeloss then
  257. script.Heartbeat:Fire()
  258. lastframe = tick()
  259. else
  260. for i = 1, math.floor(tf / frame) do
  261. script.Heartbeat:Fire()
  262. end
  263. lastframe = tick()
  264. end
  265. if tossremainder then
  266. tf = 0
  267. else
  268. tf = tf - frame * math.floor(tf / frame)
  269. end
  270. end
  271. end)
  272.  
  273. function swait(num)
  274. if num == 0 or num == nil then
  275. ArtificialHB.Event:wait()
  276. else
  277. for i = 0, num do
  278. ArtificialHB.Event:wait()
  279. end
  280. end
  281. end
  282.  
  283. local RbxUtility = LoadLibrary("RbxUtility")
  284. local Create = RbxUtility.Create
  285.  
  286. function RemoveOutlines(part)
  287. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  288. end
  289.  
  290. CFuncs = {
  291. ["Part"] = {
  292. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  293. local Part = Create("Part"){
  294. Parent = Parent,
  295. Reflectance = Reflectance,
  296. Transparency = Transparency,
  297. CanCollide = false,
  298. Locked = true,
  299. BrickColor = BrickColor.new(tostring(BColor)),
  300. Name = Name,
  301. Size = Size,
  302. Material = Material,
  303. }
  304. RemoveOutlines(Part)
  305. return Part
  306. end;
  307. };
  308.  
  309. ["Mesh"] = {
  310. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  311. local Msh = Create(Mesh){
  312. Parent = Part,
  313. Offset = OffSet,
  314. Scale = Scale,
  315. }
  316. if Mesh == "SpecialMesh" then
  317. Msh.MeshType = MeshType
  318. Msh.MeshId = MeshId
  319. end
  320. return Msh
  321. end;
  322. };
  323.  
  324. ["Mesh"] = {
  325. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  326. local Msh = Create(Mesh){
  327. Parent = Part,
  328. Offset = OffSet,
  329. Scale = Scale,
  330. }
  331. if Mesh == "SpecialMesh" then
  332. Msh.MeshType = MeshType
  333. Msh.MeshId = MeshId
  334. end
  335. return Msh
  336. end;
  337. };
  338.  
  339. ["Weld"] = {
  340. Create = function(Parent, Part0, Part1, C0, C1)
  341. local Weld = Create("Weld"){
  342. Parent = Parent,
  343. Part0 = Part0,
  344. Part1 = Part1,
  345. C0 = C0,
  346. C1 = C1,
  347. }
  348. return Weld
  349. end;
  350. };
  351.  
  352. ["Sound"] = {
  353. Create = function(id, par, vol, pit)
  354. coroutine.resume(coroutine.create(function()
  355. local S = Create("Sound"){
  356. Volume = vol,
  357. Pitch = pit or 1,
  358. SoundId = id,
  359. Parent = par or workspace,
  360. }
  361. Instance.new("DistortionSoundEffect", S).Level = 1
  362. wait()
  363. S:play()
  364. game:GetService("Debris"):AddItem(S, 10)
  365. end))
  366. end;
  367. };
  368.  
  369. ["ParticleEmitter"] = {
  370. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  371. local fp = Create("ParticleEmitter"){
  372. Parent = Parent,
  373. Color = ColorSequence.new(Color1, Color2),
  374. LightEmission = LightEmission,
  375. Size = Size,
  376. Texture = Texture,
  377. Transparency = Transparency,
  378. ZOffset = ZOffset,
  379. Acceleration = Accel,
  380. Drag = Drag,
  381. LockedToPart = LockedToPart,
  382. VelocityInheritance = VelocityInheritance,
  383. EmissionDirection = EmissionDirection,
  384. Enabled = Enabled,
  385. Lifetime = LifeTime,
  386. Rate = Rate,
  387. Rotation = Rotation,
  388. RotSpeed = RotSpeed,
  389. Speed = Speed,
  390. VelocitySpread = VelocitySpread,
  391. }
  392. return fp
  393. end;
  394. };
  395. }
  396.  
  397. function rayCast(Position, Direction, Range, Ignore)
  398. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  399. end
  400.  
  401. local function GetNearest(obj, distance)
  402. local last, lastx = distance + 1
  403. for i, v in pairs(workspace:GetChildren()) do
  404. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  405. local t = v.Torso
  406. local dist = (t.Position - obj.Position).magnitude
  407. if dist <= distance then
  408. if dist < last then
  409. last = dist
  410. lastx = v
  411. end
  412. end
  413. end
  414. end
  415. return lastx
  416. end
  417.  
  418. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  419.  
  420. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  421. for i, v in pairs(hit:GetChildren()) do
  422. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  423. local find = v:FindFirstChild("DebounceHit")
  424. if not find then
  425. if v.Parent:findFirstChild("Head") then
  426. local BillG = Create("BillboardGui"){
  427. Parent = v.Parent.Head,
  428. Size = UDim2.new(1, 0, 1, 0),
  429. Adornee = v.Parent.Head,
  430. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  431. }
  432. local TL = Create("TextLabel"){
  433. Parent = BillG,
  434. Size = UDim2.new(3, 3, 3, 3),
  435. BackgroundTransparency = 1,
  436. Text = tostring(damage).."-",
  437. TextColor3 = Color1.Color,
  438. TextStrokeColor3 = Color2.Color,
  439. TextStrokeTransparency = 0,
  440. TextXAlignment = Enum.TextXAlignment.Center,
  441. TextYAlignment = Enum.TextYAlignment.Center,
  442. FontSize = Enum.FontSize.Size18,
  443. Font = "ArialBold",
  444. }
  445. coroutine.resume(coroutine.create(function()
  446. swait(1)
  447. for i = 0, 1, .1 do
  448. swait(.1)
  449. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  450. end
  451. BillG:Destroy()
  452. end))
  453. end
  454. v.Health = v.Health - damage
  455. local bool = Create("BoolValue"){
  456. Parent = v,
  457. Name = "DebounceHit",
  458. }
  459. if HSound ~= nil and HPitch ~= nil then
  460. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  461. end
  462. game:GetService("Debris"):AddItem(bool, cooldown)
  463. end
  464. end
  465. end
  466. end
  467.  
  468. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  469. for _, c in pairs(workspace:children()) do
  470. local hum = c:findFirstChild("Humanoid")
  471. if hum ~= nil then
  472. local head = c:findFirstChild("Torso")
  473. if head ~= nil then
  474. local targ = head.Position - Part.Position
  475. local mag = targ.magnitude
  476. if mag <= magni and c.Name ~= Player.Name then
  477. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  478. end
  479. end
  480. end
  481. end
  482. end
  483.  
  484. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  485. 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))
  486. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  487. 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))
  488. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  489. 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))
  490. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Really red", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  491. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38, -0.300000194, 0.400000160, 1, 0, 0, 0, 1, 0, 0, 0, -1))
  492. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://94219391", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  493. Part.Mesh.TextureId = "rbxassetid://94219470"
  494. Part.Mesh.Scale = Vector3.new(-1.05, 1.05, 1.05)
  495.  
  496. EffectModel = Instance.new("Model", Character)
  497. EffectModel.Name = "Effects"
  498.  
  499. Effects = {
  500. ["Block"] = {
  501. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  502. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  503. prt.Anchored = true
  504. prt.CFrame = cframe
  505. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  506. game:GetService("Debris"):AddItem(prt, 10)
  507. if Type == 1 or Type == nil then
  508. table.insert(Effects, {
  509. prt,
  510. "Block1",
  511. delay,
  512. x3,
  513. y3,
  514. z3,
  515. msh
  516. })
  517. elseif Type == 2 then
  518. table.insert(Effects, {
  519. prt,
  520. "Block2",
  521. delay,
  522. x3,
  523. y3,
  524. z3,
  525. msh
  526. })
  527. end
  528. end;
  529. };
  530.  
  531. ["Cylinder"] = {
  532. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  533. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  534. prt.Anchored = true
  535. prt.CFrame = cframe
  536. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  537. game:GetService("Debris"):AddItem(prt, 2)
  538. Effects[#Effects + 1] = {
  539. prt,
  540. "Cylinder",
  541. delay,
  542. x3,
  543. y3,
  544. z3
  545. }
  546. end;
  547. };
  548.  
  549. ["Sphere"] = {
  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, "Sphere", "", 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. ["Elec"] = {
  569. Create = function(cff, x, y, z)
  570. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  571. prt.Anchored = true
  572. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  573. prt.CFrame = CFrame.new(prt.Position)
  574. game:GetService("Debris"):AddItem(prt, 2)
  575. local xval = math.random() / 2
  576. local yval = math.random() / 2
  577. local zval = math.random() / 2
  578. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  579. table.insert(Effects, {
  580. prt,
  581. "Elec",
  582. 0.1,
  583. x,
  584. y,
  585. z,
  586. xval,
  587. yval,
  588. zval
  589. })
  590. end;
  591.  
  592. };
  593.  
  594. ["Ring"] = {
  595. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  596. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  597. prt.Anchored = true
  598. prt.CFrame = cframe
  599. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  600. game:GetService("Debris"):AddItem(prt, 10)
  601. table.insert(Effects, {
  602. prt,
  603. "Cylinder",
  604. delay,
  605. x3,
  606. y3,
  607. z3,
  608. msh
  609. })
  610. end;
  611. };
  612.  
  613.  
  614. ["Wave"] = {
  615. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  616. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  617. prt.Anchored = true
  618. prt.CFrame = cframe
  619. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  620. game:GetService("Debris"):AddItem(prt, 10)
  621. table.insert(Effects, {
  622. prt,
  623. "Cylinder",
  624. delay,
  625. x3,
  626. y3,
  627. z3,
  628. msh
  629. })
  630. end;
  631. };
  632.  
  633. ["Break"] = {
  634. Create = function(brickcolor, cframe, x1, y1, z1)
  635. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  636. prt.Anchored = true
  637. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  638. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  639. local num = math.random(10, 50) / 1000
  640. game:GetService("Debris"):AddItem(prt, 10)
  641. table.insert(Effects, {
  642. prt,
  643. "Shatter",
  644. num,
  645. prt.CFrame,
  646. math.random() - math.random(),
  647. 0,
  648. math.random(50, 100) / 100
  649. })
  650. end;
  651. };
  652. }
  653.  
  654. Shoot2 = function(orgpos)
  655. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  656. Effects["Sphere"].Create(BrickColor.new("White"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  657. table.insert(Effects, {
  658. MouseLook.lookVector,
  659. "Shoot2",
  660. 50,
  661. orgpos,
  662. 5,
  663. 7,
  664. 0,
  665. 1,
  666. 2
  667. })
  668. end
  669.  
  670. function bulletstorm()
  671. attack = true
  672. CFuncs["Sound"].Create("rbxassetid://539881968", Torso, 1, 1)
  673. text.Text = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  674. wait(1.5)
  675. for i = 0, 1, 0.025 do
  676. swait()
  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.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),
  680. 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),
  681. 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),
  682. 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),
  683. 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),
  684. }, .3, false)
  685. CFuncs["Sound"].Create("rbxassetid://539882114", Torso, 1, 1)
  686. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  687. Shoot2(Barrel.Position)
  688. text.Text = "DOGE DUDEY"
  689. end
  690.  
  691. attack = false
  692. end
  693.  
  694. function overload()
  695. attack = true
  696. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  697. text.Text = "AAAAAAAAAAAA"
  698. Shoot2(LeftArm.Position)
  699. Shoot2(RightArm.Position)
  700. Shoot2(RightLeg.Position)
  701. Shoot2(LeftLeg.Position)
  702. Shoot2(Head.Position)
  703. Shoot2(Torso.Position)
  704. wait(0)
  705. attack = false
  706. text.Text = "idiot with an inverted Doge"
  707. end
  708.  
  709. function overcharge()
  710. attack = true
  711. text.Text = "AAAAAAAAAAAA"
  712. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  713. for i = 0, 1, 0.15 do
  714. swait()
  715. PlayAnimationFromTable({
  716. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  717. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  718. CFrame.new(1.10100186, 0.535800219, -0.637803555, 0.658456147, 0.673041463, 0.336824596, 0.280167073, 0.196174845, -0.939692438, -0.698528469, 0.713113427, -0.0593915135),
  719. CFrame.new(-1.62758517, 0.073027119, -0.378663093, 0.90510416, 0.321394593, -0.278374165, -0.392632991, 0.883023262, -0.25711751, 0.163174719, 0.342016995, 0.92541796),
  720. CFrame.new(0.644929826, -1.96549833, 0.164695352, 0.962249994, -0.148305506, 0.228211343, 0.0871559754, 0.962249756, 0.257835865, -0.257834762, -0.22821258, 0.938850582),
  721. CFrame.new(-0.750219464, -1.99537396, -0.240616962, 0.862504363, 0.0818999186, 0.499378443, -0.08583197, 0.99619472, -0.0151344473, -0.498717606, -0.0298091136, 0.866251826),
  722. }, .5, false)
  723. end
  724. wait(3)
  725. Shoot2(Barrel.Position)
  726. Shoot2(Barrel.Position)
  727. Shoot2(Handle.Position)
  728. Shoot2(Handle.Position)
  729. Shoot2(FakeHandle.Position)
  730. Shoot2(FakeHandle.Position)
  731. Shoot2(Barrel.Position)
  732. Shoot2(Barrel.Position)
  733. Shoot2(Handle.Position)
  734. Shoot2(Handle.Position)
  735. Shoot2(FakeHandle.Position)
  736. Shoot2(FakeHandle.Position)
  737. Shoot2(Barrel.Position)
  738. Shoot2(Barrel.Position)
  739. Shoot2(Handle.Position)
  740. Shoot2(Handle.Position)
  741. Shoot2(FakeHandle.Position)
  742. Shoot2(FakeHandle.Position)
  743. Shoot2(Barrel.Position)
  744. Shoot2(Barrel.Position)
  745. Shoot2(Handle.Position)
  746. Shoot2(Handle.Position)
  747. Shoot2(FakeHandle.Position)
  748. Shoot2(FakeHandle.Position)
  749. for i = 0, 1, 0.15 do
  750. swait()
  751. PlayAnimationFromTable({
  752. CFrame.new(2.70828605e-006, -0.356254776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
  753. CFrame.new(4.34633694e-006, 1.49999607, 2.42484384e-006, 0.646143615, 0.0549410731, 0.761235893, -0.0851004422, 0.996372402, 0.000322267413, -0.758456767, -0.0649897307, 0.648474991),
  754. CFrame.new(1.86507177, 0.598104239, 0.183552518, -0.114682339, -0.981059372, -0.156110525, 0.981060445, -0.0871559381, -0.172987223, 0.156104773, -0.172992408, 0.9724738),
  755. CFrame.new(-1.52644157, 0.0874626189, -0.302744657, 0.95125103, 0.20658794, -0.229004204, -0.254887104, 0.944645047, -0.2065873, 0.173649222, 0.254886597, 0.951251268),
  756. CFrame.new(0.623469114, -1.90178788, 0.0298061967, 0.992532074, -0.0928985924, 0.079056859, 0.0757590532, 0.97739321, 0.197391063, -0.0956070125, -0.189927697, 0.977131963),
  757. CFrame.new(-0.786503196, -1.67652178, -0.389780819, 0.631277382, 0.179900557, 0.754403591, -0.0723632798, 0.982144117, -0.173656344, -0.772174001, 0.0550341941, 0.6330235),
  758. }, .35, false)
  759. text.Text = "idiot with a ShotGun"
  760. end
  761. attack = false
  762. end
  763.  
  764. function attackone()
  765. attack = true
  766. text.Text = "SHOTGUN POWERRRRR!!!3"
  767.  
  768. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  769. howtobasic1.Volume = 45
  770. howtobasic1.SoundId = "rbxassetid://539882069"
  771. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  772. howtobasic2.Volume = 45
  773. howtobasic2.SoundId = "rbxassetid://175678956"
  774. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  775. howtobasic3.Volume = 45
  776. howtobasic3.SoundId = "rbxassetid://539882114"
  777. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  778. howtobasic.Volume = 45
  779. howtobasic.SoundId = "rbxassetid://175678956"
  780.  
  781. local Math = math.random(1,4)
  782. if Math == 1 then
  783. howtobasic:Play()
  784. end
  785. if Math == 2 then
  786. howtobasic1:Play()
  787. end
  788. if Math == 3 then
  789. howtobasic2:Play()
  790. end
  791. if Math == 4 then
  792. howtobasic3:Play()
  793. end
  794. for i = 0, 1, 0.025 do
  795. swait()
  796. PlayAnimationFromTable({
  797. CFrame.new(-0, -0, -0, 1, 0, 0, 1, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  798. 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),
  799. 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),
  800. 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),
  801. 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),
  802. 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),
  803. }, .3, false)
  804. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  805. end
  806. CFuncs["Sound"].Create("rbxassetid://145799973", Barrel, 5, 1)
  807. text.Text = "SOME IDIOT WITH A DOGE"
  808. Shoot2(Barrel.Position)
  809. for i = 0, 1, 0.15 do
  810. swait()
  811. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  812. PlayAnimationFromTable({
  813. 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),
  814. 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),
  815. 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),
  816. 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),
  817. 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),
  818. 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),
  819. }, .6, false)
  820. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  821. end
  822. for i = 0, 1, 0.15 do
  823. swait()
  824. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  825. PlayAnimationFromTable({
  826. 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),
  827. 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),
  828. 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),
  829. 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),
  830. 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),
  831. 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),
  832. }, .2, false)
  833. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  834. end
  835. for i = 0, 1, 0.05 do
  836. swait()
  837. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  838. PlayAnimationFromTable({
  839. 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),
  840. 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),
  841. 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),
  842. 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),
  843. 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),
  844. 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),
  845. }, .3, false)
  846. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  847. end
  848. for i = 0, 1, 0.13 do
  849. swait()
  850. PlayAnimationFromTable({
  851. 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),
  852. 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),
  853. 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),
  854. 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),
  855. 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),
  856. 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),
  857. }, .3, false)
  858. end
  859. attack = false
  860. end
  861.  
  862. --[[Attacks]]--
  863.  
  864. mouse.Button1Down:connect(function()
  865. if attack == false and attacktype == 1 then
  866. attackone()
  867. end
  868. end)
  869.  
  870.  
  871. mouse.KeyDown:connect(function(k)
  872. k = k:lower()
  873. if attack == false and k == 'q' then
  874. bulletstorm()
  875. elseif attack == false and k == 'e' then
  876. overload()
  877. elseif attack == false and k == 'r' then
  878. overcharge()
  879. end
  880. end)
  881.  
  882. while true do
  883. swait()
  884. for i, v in pairs(Character:GetChildren()) do
  885. if v:IsA("Part") then
  886. v.Material = "SmoothPlastic"
  887. elseif v:IsA("Accessory") then
  888. v:WaitForChild("Handle").Material = "SmoothPlastic"
  889. end
  890. end
  891. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  892. velocity = RootPart.Velocity.y
  893. sine = sine + change
  894. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  895. if equipped == true or equipped == false then
  896. if RootPart.Velocity.y > 1 and hit == nil then
  897. Anim = "Jump"
  898. if attack == false then
  899. PlayAnimationFromTable({
  900. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  901. 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),
  902. 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),
  903. 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),
  904. 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),
  905. 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),
  906. }, .3, false)
  907. end
  908. elseif RootPart.Velocity.y < -60 and hit == nil then
  909. Anim = "Fall"
  910. if attack == false then
  911. PlayAnimationFromTable({
  912. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  913. 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),
  914. 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),
  915. 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),
  916. 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),
  917. 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),
  918. }, .3, false)
  919. end
  920. elseif Torsovelocity < 1 and hit ~= nil then
  921. Anim = "Idle"
  922. if attack == false then
  923. change = 1
  924. PlayAnimationFromTable({
  925. 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),
  926. 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),
  927. 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),
  928. 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),
  929. 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),
  930. 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),
  931. }, .3, false)
  932. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  933. end
  934. elseif Torsovelocity > 2 and hit ~= nil then
  935. Anim = "Walk"
  936. if attack == false then
  937. change = 3
  938. PlayAnimationFromTable({
  939. 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),
  940. 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),
  941. 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),
  942. 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),
  943. 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)),
  944. 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)),
  945. }, .3, false)
  946. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  947. end
  948. end
  949. end
  950. if 0 < #Effects then
  951. for e = 1, #Effects do
  952. if Effects[e] ~= nil then
  953. local Thing = Effects[e]
  954. if Thing ~= nil then
  955. local Part = Thing[1]
  956. local Mode = Thing[2]
  957. local Delay = Thing[3]
  958. local IncX = Thing[4]
  959. local IncY = Thing[5]
  960. local IncZ = Thing[6]
  961. if Thing[2] == "Shoot" then
  962. local Look = Thing[1]
  963. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  964. local mag = (Thing[4] - pos).magnitude
  965. Thing[9] = Thing[9] + 0.5
  966. Thing[5] = Thing[5] + 0.2
  967. Thing[6] = Thing[6] + 0.2
  968. Effects["Cylinder"].Create(BrickColor.new("White"), 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)
  969. Thing[4] = Thing[4] + Look * 15
  970. Thing[3] = Thing[3] - 1
  971. if hit ~= nil then
  972. Thing[3] = 0
  973. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  974. ref.Anchored = true
  975. ref.CFrame = CFrame.new(pos)
  976. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  977. CFuncs["Sound"].Create("rbxassetid://539881968", ref, 0.1, 1)
  978. game:GetService("Debris"):AddItem(ref, 10)
  979. end
  980. if Thing[3] <= 0 then
  981. table.remove(Effects, e)
  982. end
  983. end
  984. do
  985. if Thing[2] == "Shoot2" then
  986. local Look = Thing[1]
  987. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  988. local mag = (Thing[4] - pos).magnitude
  989. Thing[9] = Thing[9] + 0.5
  990. Thing[5] = Thing[5] + 0.2
  991. Thing[6] = Thing[6] + 0.2
  992. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  993. Thing[4] = Thing[4] + Look * 3
  994. Thing[3] = Thing[3] + 5
  995. if hit ~= nil then
  996. Thing[3] = 0
  997. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  998. ref.Anchored = true
  999. ref.CFrame = CFrame.new(pos)
  1000. Effects["Sphere"].Create(BrickColor.new("Really yellow"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  1001. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  1002. Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  1003. Effects["Wave"].Create(BrickColor.new("Really red"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  1004. CFuncs["Sound"].Create("rbxassetid://151778863", ref, 1, 1)
  1005. CFuncs["Sound"].Create("rbxassetid://151778863", Sphere, 0.5, 1)
  1006. CFuncs["Sound"].Create("rbxassetid://151778863", Sphere, 0.1, 1)
  1007. local e = Instance.new("Explosion", ref)
  1008. e.Position = ref.Position
  1009. e.BlastRadius = 400
  1010. e.DestroyJointRadiusPercent = 400
  1011. e.Visible = false
  1012. e.ExplosionType = "CratersAndDebris"
  1013. game:GetService("Debris"):AddItem(ref, 2)
  1014. end
  1015. if Thing[3] <= 0 then
  1016. table.remove(Effects, e)
  1017. end
  1018. end
  1019. do
  1020. do
  1021. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  1022. if Thing[1].Transparency <= 1 then
  1023. if Thing[2] == "Block1" then
  1024. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1025. Mesh = Thing[7]
  1026. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1027. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1028. else
  1029. if Thing[2] == "Block2" then
  1030. Thing[1].CFrame = Thing[1].CFrame
  1031. Mesh = Thing[7]
  1032. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1033. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1034. else
  1035. if Thing[2] == "Block3" then
  1036. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  1037. Mesh = Thing[7]
  1038. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1039. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1040. else
  1041. if Thing[2] == "Cylinder" then
  1042. Mesh = Thing[7]
  1043. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1044. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1045. else
  1046. if Thing[2] == "Cylinder2" then
  1047. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  1048. Mesh = Thing[7]
  1049. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1050. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1051. else
  1052. if Thing[2] == "Blood" then
  1053. Mesh = Thing[7]
  1054. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1055. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1056. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1057. else
  1058. if Thing[2] == "Elec" then
  1059. Mesh = Thing[10]
  1060. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1061. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1062. else
  1063. if Thing[2] == "Disappear" then
  1064. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1065. end
  1066. end
  1067. end
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073. else
  1074. Part.Parent = nil
  1075. table.remove(Effects, e)
  1076. end
  1077. end
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083. end
  1084. end
  1085. end
Add Comment
Please, Sign In to add comment