Advertisement
gdgrg

luis911911

Aug 3rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.41 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6. CV="White"
  7.  
  8. p = game.Players.LocalPlayer
  9. char = p.Character
  10. local txt = Instance.new("BillboardGui", char)
  11. txt.Adornee = char .Head
  12. txt.Name = "_status"
  13. txt.Size = UDim2.new(2, 0, 1.2, 0)
  14. txt.StudsOffset = Vector3.new(-9, 8, 0)
  15. local text = Instance.new("TextLabel", txt)
  16. text.Size = UDim2.new(10, 0, 7, 0)
  17. text.FontSize = "Size24"
  18. text.TextScaled = true
  19. text.TextTransparency = 0
  20. text.BackgroundTransparency = 1
  21. text.TextTransparency = 0
  22. text.TextStrokeTransparency = 1
  23. text.Font = "Arcade"
  24. text.TextStrokeColor3 = Color3.new(0,0,255)
  25.  
  26. v=Instance.new("Part")
  27. v.Name = "ColorBrick"
  28. v.Parent=p.Character
  29. v.FormFactor="Symmetric"
  30. v.Anchored=true
  31. v.CanCollide=false
  32. v.BottomSurface="Smooth"
  33. v.TopSurface="Smooth"
  34. v.Size=Vector3.new(10,5,3)
  35. v.Transparency=1
  36. v.CFrame=char.Torso.CFrame
  37. v.BrickColor=BrickColor.new(CV)
  38. v.Transparency=1
  39. text.TextColor3 = Color3.new(255,255,0)
  40. v.Shape="Block"
  41. text.Text = "JOJO BIZZARE ADVENTURE GUN"
  42. wait(1 / 60)
  43. Effects = { }
  44. local Player = game.Players.localPlayer
  45. local Character = Player.Character
  46. local Humanoid = Character.Humanoid
  47. local mouse = Player:GetMouse()
  48. local m = Instance.new('Model', Character)
  49. m.Name = "WeaponModel"
  50. local LeftArm = Character["Left Arm"]
  51. local RightArm = Character["Right Arm"]
  52. local LeftLeg = Character["Left Leg"]
  53. local RightLeg = Character["Right Leg"]
  54. local Head = Character.Head
  55. local Torso = Character.Torso
  56. local cam = game.Workspace.CurrentCamera
  57. local RootPart = Character.HumanoidRootPart
  58. local RootJoint = RootPart.RootJoint
  59. local equipped = false
  60. local attack = false
  61. local Anim = 'Idle'
  62. local idle = 0
  63. local attacktype = 1
  64. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  65. local velocity = RootPart.Velocity.y
  66. local sine = 0
  67. local change = 1
  68. local grabbed = false
  69. local cn = CFrame.new
  70. local mr = math.rad
  71. local angles = CFrame.Angles
  72. local ud = UDim2.new
  73. local c3 = Color3.new
  74. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  75. local s = Instance.new("Sound",Character)
  76. s.Name = "BGMusic"
  77. s.SoundId = "rbxassetid://519992991"
  78. s.Pitch = 1
  79. s.Volume = 0.25
  80. s.Looped = true
  81. s.archivable = false
  82. wait(0.1)
  83. s:play()
  84.  
  85. Humanoid.Animator.Parent = nil
  86. Character.Animate.Parent = nil
  87.  
  88. local newMotor = function(part0, part1, c0, c1)
  89. local w = Instance.new('Motor', part0)
  90. w.Part0 = part0
  91. w.Part1 = part1
  92. w.C0 = c0
  93. w.C1 = c1
  94. return w
  95. end
  96.  
  97. function clerp(a, b, t)
  98. return a:lerp(b, t)
  99. end
  100.  
  101. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  102. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  103.  
  104. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  105. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  106. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  107. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  108. RootJoint.C1 = CFrame.new(0, 0, 0)
  109. RootJoint.C0 = CFrame.new(0, 0, 0)
  110. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  111. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  112.  
  113. local rarmc1 = RW.C1
  114. local larmc1 = LW.C1
  115. local rlegc1 = RH.C1
  116. local llegc1 = LH.C1
  117.  
  118. local resetc1 = false
  119.  
  120. function PlayAnimationFromTable(table, speed, bool)
  121. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  122. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  123. RW.C0 = clerp(RW.C0, table[3], speed)
  124. LW.C0 = clerp(LW.C0, table[4], speed)
  125. RH.C0 = clerp(RH.C0, table[5], speed)
  126. LH.C0 = clerp(LH.C0, table[6], speed)
  127. if bool == true then
  128. if resetc1 == false then
  129. resetc1 = true
  130. RootJoint.C1 = RootJoint.C1
  131. Torso.Neck.C1 = Torso.Neck.C1
  132. RW.C1 = rarmc1
  133. LW.C1 = larmc1
  134. RH.C1 = rlegc1
  135. LH.C1 = llegc1
  136. end
  137. end
  138. end
  139.  
  140. Char = char
  141.  
  142. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  143.  
  144. ArtificialHB = Instance.new("BindableEvent", script)
  145. ArtificialHB.Name = "Heartbeat"
  146.  
  147. script:WaitForChild("Heartbeat")
  148.  
  149. frame = 1 / 30
  150. tf = 0
  151. allowframeloss = false
  152. tossremainder = false
  153. lastframe = tick()
  154. script.Heartbeat:Fire()
  155.  
  156. game:GetService("RunService").Heartbeat:connect(function(s, p)
  157. tf = tf + s
  158. if tf >= frame then
  159. if allowframeloss then
  160. script.Heartbeat:Fire()
  161. lastframe = tick()
  162. else
  163. for i = 1, math.floor(tf / frame) do
  164. script.Heartbeat:Fire()
  165. end
  166. lastframe = tick()
  167. end
  168. if tossremainder then
  169. tf = 0
  170. else
  171. tf = tf - frame * math.floor(tf / frame)
  172. end
  173. end
  174. end)
  175.  
  176. function swait(num)
  177. if num == 0 or num == nil then
  178. ArtificialHB.Event:wait()
  179. else
  180. for i = 0, num do
  181. ArtificialHB.Event:wait()
  182. end
  183. end
  184. end
  185.  
  186. local RbxUtility = LoadLibrary("RbxUtility")
  187. local Create = RbxUtility.Create
  188.  
  189. function RemoveOutlines(part)
  190. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  191. end
  192.  
  193. CFuncs = {
  194. ["Part"] = {
  195. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  196. local Part = Create("Part"){
  197. Parent = Parent,
  198. Reflectance = Reflectance,
  199. Transparency = Transparency,
  200. CanCollide = false,
  201. Locked = true,
  202. BrickColor = BrickColor.new(tostring(BColor)),
  203. Name = Name,
  204. Size = Size,
  205. Material = Material,
  206. }
  207. RemoveOutlines(Part)
  208. return Part
  209. end;
  210. };
  211.  
  212. ["Mesh"] = {
  213. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  214. local Msh = Create(Mesh){
  215. Parent = Part,
  216. Offset = OffSet,
  217. Scale = Scale,
  218. }
  219. if Mesh == "SpecialMesh" then
  220. Msh.MeshType = MeshType
  221. Msh.MeshId = MeshId
  222. end
  223. return Msh
  224. end;
  225. };
  226.  
  227. ["Mesh"] = {
  228. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  229. local Msh = Create(Mesh){
  230. Parent = Part,
  231. Offset = OffSet,
  232. Scale = Scale,
  233. }
  234. if Mesh == "SpecialMesh" then
  235. Msh.MeshType = MeshType
  236. Msh.MeshId = MeshId
  237. end
  238. return Msh
  239. end;
  240. };
  241.  
  242. ["Weld"] = {
  243. Create = function(Parent, Part0, Part1, C0, C1)
  244. local Weld = Create("Weld"){
  245. Parent = Parent,
  246. Part0 = Part0,
  247. Part1 = Part1,
  248. C0 = C0,
  249. C1 = C1,
  250. }
  251. return Weld
  252. end;
  253. };
  254.  
  255. ["Sound"] = {
  256. Create = function(id, par, vol, pit)
  257. coroutine.resume(coroutine.create(function()
  258. local S = Create("Sound"){
  259. Volume = vol,
  260. Pitch = pit or 1,
  261. SoundId = id,
  262. Parent = par or workspace,
  263. }
  264. Instance.new("DistortionSoundEffect", S).Level = 1
  265. wait()
  266. S:play()
  267. game:GetService("Debris"):AddItem(S, 10)
  268. end))
  269. end;
  270. };
  271.  
  272. ["ParticleEmitter"] = {
  273. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  274. local fp = Create("ParticleEmitter"){
  275. Parent = Parent,
  276. Color = ColorSequence.new(Color1, Color2),
  277. LightEmission = LightEmission,
  278. Size = Size,
  279. Texture = Texture,
  280. Transparency = Transparency,
  281. ZOffset = ZOffset,
  282. Acceleration = Accel,
  283. Drag = Drag,
  284. LockedToPart = LockedToPart,
  285. VelocityInheritance = VelocityInheritance,
  286. EmissionDirection = EmissionDirection,
  287. Enabled = Enabled,
  288. Lifetime = LifeTime,
  289. Rate = Rate,
  290. Rotation = Rotation,
  291. RotSpeed = RotSpeed,
  292. Speed = Speed,
  293. VelocitySpread = VelocitySpread,
  294. }
  295. return fp
  296. end;
  297. };
  298. }
  299.  
  300. function rayCast(Position, Direction, Range, Ignore)
  301. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  302. end
  303.  
  304. local function GetNearest(obj, distance)
  305. local last, lastx = distance + 1
  306. for i, v in pairs(workspace:GetChildren()) do
  307. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  308. local t = v.Torso
  309. local dist = (t.Position - obj.Position).magnitude
  310. if dist <= distance then
  311. if dist < last then
  312. last = dist
  313. lastx = v
  314. end
  315. end
  316. end
  317. end
  318. return lastx
  319. end
  320.  
  321. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  322.  
  323. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  324. for i, v in pairs(hit:GetChildren()) do
  325. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  326. local find = v:FindFirstChild("DebounceHit")
  327. if not find then
  328. if v.Parent:findFirstChild("Head") then
  329. local BillG = Create("BillboardGui"){
  330. Parent = v.Parent.Head,
  331. Size = UDim2.new(1, 0, 1, 0),
  332. Adornee = v.Parent.Head,
  333. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  334. }
  335. local TL = Create("TextLabel"){
  336. Parent = BillG,
  337. Size = UDim2.new(3, 3, 3, 3),
  338. BackgroundTransparency = 1,
  339. Text = tostring(damage).."-",
  340. TextColor3 = Color1.Color,
  341. TextStrokeColor3 = Color2.Color,
  342. TextStrokeTransparency = 0,
  343. TextXAlignment = Enum.TextXAlignment.Center,
  344. TextYAlignment = Enum.TextYAlignment.Center,
  345. FontSize = Enum.FontSize.Size18,
  346. Font = "ArialBold",
  347. }
  348. coroutine.resume(coroutine.create(function()
  349. swait(1)
  350. for i = 0, 1, .1 do
  351. swait(.1)
  352. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  353. end
  354. BillG:Destroy()
  355. end))
  356. end
  357. v.Health = v.Health - damage
  358. local bool = Create("BoolValue"){
  359. Parent = v,
  360. Name = "DebounceHit",
  361. }
  362. if HSound ~= nil and HPitch ~= nil then
  363. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  364. end
  365. game:GetService("Debris"):AddItem(bool, cooldown)
  366. end
  367. end
  368. end
  369. end
  370.  
  371. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  372. for _, c in pairs(workspace:children()) do
  373. local hum = c:findFirstChild("Humanoid")
  374. if hum ~= nil then
  375. local head = c:findFirstChild("Torso")
  376. if head ~= nil then
  377. local targ = head.Position - Part.Position
  378. local mag = targ.magnitude
  379. if mag <= magni and c.Name ~= Player.Name then
  380. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  381. end
  382. end
  383. end
  384. end
  385. end
  386.  
  387. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  388. 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))
  389. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  390. 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))
  391. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  392. 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))
  393. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  394. 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))
  395. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://431951823", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  396. Part.Mesh.TextureId = "rbxassetid://431951829"
  397. Part.Mesh.Scale = Vector3.new(-0.2, 0.2, -0.2)
  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("Lime green"), "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("White"), 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 bulletstorm()
  574. attack = true
  575. CFuncs["Sound"].Create("rbxassetid://539881968", Torso, 1, 1)
  576. text.Text = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  577. wait(1.5)
  578. for i = 0, 1, 0.025 do
  579. swait()
  580. PlayAnimationFromTable({
  581. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  582. 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),
  583. 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),
  584. 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),
  585. 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),
  586. 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),
  587. }, .3, false)
  588. CFuncs["Sound"].Create("rbxassetid://539882114", Torso, 1, 1)
  589. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  590. Shoot2(Barrel.Position)
  591. text.Text = "guy with an inverted sniper rifle"
  592. end
  593.  
  594. attack = false
  595. end
  596.  
  597. function overload()
  598. attack = true
  599. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  600. text.Text = "AAAAAAAAAAAA"
  601. Shoot2(LeftArm.Position)
  602. Shoot2(RightArm.Position)
  603. Shoot2(RightLeg.Position)
  604. Shoot2(LeftLeg.Position)
  605. Shoot2(Head.Position)
  606. Shoot2(Torso.Position)
  607. wait(0)
  608. attack = false
  609. text.Text = "guy with an inverted sniper rifle"
  610. end
  611.  
  612. function overcharge()
  613. attack = true
  614. text.Text = "AAAAAAAAAAAA"
  615. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  616. for i = 0, 1, 0.15 do
  617. swait()
  618. PlayAnimationFromTable({
  619. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  620. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  621. 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),
  622. 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),
  623. 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),
  624. 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),
  625. }, .5, false)
  626. end
  627. wait(3)
  628. Shoot2(Barrel.Position)
  629. Shoot2(Barrel.Position)
  630. Shoot2(Handle.Position)
  631. Shoot2(Handle.Position)
  632. Shoot2(FakeHandle.Position)
  633. Shoot2(FakeHandle.Position)
  634. Shoot2(Barrel.Position)
  635. Shoot2(Barrel.Position)
  636. Shoot2(Handle.Position)
  637. Shoot2(Handle.Position)
  638. Shoot2(FakeHandle.Position)
  639. Shoot2(FakeHandle.Position)
  640. Shoot2(Barrel.Position)
  641. Shoot2(Barrel.Position)
  642. Shoot2(Handle.Position)
  643. Shoot2(Handle.Position)
  644. Shoot2(FakeHandle.Position)
  645. Shoot2(FakeHandle.Position)
  646. Shoot2(Barrel.Position)
  647. Shoot2(Barrel.Position)
  648. Shoot2(Handle.Position)
  649. Shoot2(Handle.Position)
  650. Shoot2(FakeHandle.Position)
  651. Shoot2(FakeHandle.Position)
  652. for i = 0, 1, 0.15 do
  653. swait()
  654. PlayAnimationFromTable({
  655. CFrame.new(2.70828605e-006, -0.256154776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
  656. 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),
  657. 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),
  658. 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),
  659. 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),
  660. 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),
  661. }, .35, false)
  662. text.Text = "guy with an inverted sniper rifle"
  663. end
  664. attack = false
  665. end
  666.  
  667. function attackone()
  668. attack = true
  669. text.Text = "i have crippling depression"
  670.  
  671. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  672. howtobasic1.Volume = 45
  673. howtobasic1.SoundId = "rbxassetid://539882069"
  674. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  675. howtobasic2.Volume = 45
  676. howtobasic2.SoundId = "rbxassetid://539881968"
  677. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  678. howtobasic3.Volume = 45
  679. howtobasic3.SoundId = "rbxassetid://539882114"
  680. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  681. howtobasic.Volume = 45
  682. howtobasic.SoundId = "rbxassetid://539881843"
  683.  
  684. local Math = math.random(1,4)
  685. if Math == 1 then
  686. howtobasic:Play()
  687. end
  688. if Math == 2 then
  689. howtobasic1:Play()
  690. end
  691. if Math == 3 then
  692. howtobasic2:Play()
  693. end
  694. if Math == 4 then
  695. howtobasic3:Play()
  696. end
  697. for i = 0, 1, 0.025 do
  698. swait()
  699. PlayAnimationFromTable({
  700. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  701. 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),
  702. 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),
  703. 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),
  704. 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),
  705. 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),
  706. }, .3, false)
  707. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  708. end
  709. CFuncs["Sound"].Create("rbxassetid://159490394", Barrel, 5, 1)
  710. text.Text = "JOJO BIZZARE ADVENTURE GUN"
  711. Shoot2(Barrel.Position)
  712. for i = 0, 1, 0.15 do
  713. swait()
  714. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  715. PlayAnimationFromTable({
  716. 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),
  717. 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),
  718. 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),
  719. 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),
  720. 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),
  721. 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),
  722. }, .6, false)
  723. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  724. end
  725. for i = 0, 1, 0.15 do
  726. swait()
  727. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  728. PlayAnimationFromTable({
  729. 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),
  730. 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),
  731. 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),
  732. 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),
  733. 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),
  734. 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),
  735. }, .2, false)
  736. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  737. end
  738. for i = 0, 1, 0.05 do
  739. swait()
  740. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  741. PlayAnimationFromTable({
  742. 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),
  743. 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),
  744. 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),
  745. 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),
  746. 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),
  747. 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),
  748. }, .3, false)
  749. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  750. end
  751. for i = 0, 1, 0.13 do
  752. swait()
  753. PlayAnimationFromTable({
  754. 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),
  755. 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),
  756. 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),
  757. 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),
  758. 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),
  759. 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),
  760. }, .3, false)
  761. end
  762. attack = false
  763. end
  764.  
  765. --[[Attacks]]--
  766.  
  767. mouse.Button1Down:connect(function()
  768. if attack == false and attacktype == 1 then
  769. attackone()
  770. end
  771. end)
  772.  
  773.  
  774. mouse.KeyDown:connect(function(k)
  775. k = k:lower()
  776. if attack == false and k == 'q' then
  777. bulletstorm()
  778. elseif attack == false and k == 'e' then
  779. overload()
  780. elseif attack == false and k == 'r' then
  781. overcharge()
  782. end
  783. end)
  784.  
  785. while true do
  786. swait()
  787. for i, v in pairs(Character:GetChildren()) do
  788. if v:IsA("Part") then
  789. v.Material = "SmoothPlastic"
  790. elseif v:IsA("Accessory") then
  791. v:WaitForChild("Handle").Material = "SmoothPlastic"
  792. end
  793. end
  794. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  795. velocity = RootPart.Velocity.y
  796. sine = sine + change
  797. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  798. if equipped == true or equipped == false then
  799. if RootPart.Velocity.y > 1 and hit == nil then
  800. Anim = "Jump"
  801. if attack == false then
  802. PlayAnimationFromTable({
  803. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  804. 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),
  805. 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),
  806. 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),
  807. 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),
  808. 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),
  809. }, .3, false)
  810. end
  811. elseif RootPart.Velocity.y < -60 and hit == nil then
  812. Anim = "Fall"
  813. if attack == false then
  814. PlayAnimationFromTable({
  815. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  816. 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),
  817. 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),
  818. 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),
  819. 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),
  820. 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),
  821. }, .3, false)
  822. end
  823. elseif Torsovelocity < 1 and hit ~= nil then
  824. Anim = "Idle"
  825. if attack == false then
  826. change = 1
  827. PlayAnimationFromTable({
  828. 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),
  829. 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),
  830. 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),
  831. 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),
  832. 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),
  833. 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),
  834. }, .3, false)
  835. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  836. end
  837. elseif Torsovelocity > 2 and hit ~= nil then
  838. Anim = "Walk"
  839. if attack == false then
  840. change = 3
  841. PlayAnimationFromTable({
  842. 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),
  843. 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),
  844. 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),
  845. 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),
  846. 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)),
  847. 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)),
  848. }, .3, false)
  849. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  850. end
  851. end
  852. end
  853. if 0 < #Effects then
  854. for e = 1, #Effects do
  855. if Effects[e] ~= nil then
  856. local Thing = Effects[e]
  857. if Thing ~= nil then
  858. local Part = Thing[1]
  859. local Mode = Thing[2]
  860. local Delay = Thing[3]
  861. local IncX = Thing[4]
  862. local IncY = Thing[5]
  863. local IncZ = Thing[6]
  864. if Thing[2] == "Shoot" then
  865. local Look = Thing[1]
  866. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  867. local mag = (Thing[4] - pos).magnitude
  868. Thing[9] = Thing[9] + 0.5
  869. Thing[5] = Thing[5] + 0.2
  870. Thing[6] = Thing[6] + 0.2
  871. 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)
  872. Thing[4] = Thing[4] + Look * 15
  873. Thing[3] = Thing[3] - 1
  874. if hit ~= nil then
  875. Thing[3] = 0
  876. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  877. ref.Anchored = true
  878. ref.CFrame = CFrame.new(pos)
  879. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  880. CFuncs["Sound"].Create("rbxassetid://539881968", ref, 0.1, 1)
  881. game:GetService("Debris"):AddItem(ref, 10)
  882. end
  883. if Thing[3] <= 0 then
  884. table.remove(Effects, e)
  885. end
  886. end
  887. do
  888. if Thing[2] == "Shoot2" then
  889. local Look = Thing[1]
  890. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  891. local mag = (Thing[4] - pos).magnitude
  892. Thing[9] = Thing[9] + 0.5
  893. Thing[5] = Thing[5] + 0.2
  894. Thing[6] = Thing[6] + 0.2
  895. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  896. Thing[4] = Thing[4] + Look * 3
  897. Thing[3] = Thing[3] + 5
  898. if hit ~= nil then
  899. Thing[3] = 0
  900. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  901. ref.Anchored = true
  902. ref.CFrame = CFrame.new(pos)
  903. Effects["Sphere"].Create(BrickColor.new("Really yellow"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  904. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  905. Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  906. Effects["Wave"].Create(BrickColor.new("Smoky grey"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  907. CFuncs["Sound"].Create("rbxassetid://10209236", ref, 1, 1)
  908. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.5, 1)
  909. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.1, 1)
  910. local e = Instance.new("Explosion", ref)
  911. e.Position = ref.Position
  912. e.BlastRadius = 400
  913. e.DestroyJointRadiusPercent = 400
  914. e.Visible = false
  915. e.ExplosionType = "CratersAndDebris"
  916. game:GetService("Debris"):AddItem(ref, 2)
  917. end
  918. if Thing[3] <= 0 then
  919. table.remove(Effects, e)
  920. end
  921. end
  922. do
  923. do
  924. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  925. if Thing[1].Transparency <= 1 then
  926. if Thing[2] == "Block1" then
  927. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  928. Mesh = Thing[7]
  929. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  930. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  931. else
  932. if Thing[2] == "Block2" then
  933. Thing[1].CFrame = Thing[1].CFrame
  934. Mesh = Thing[7]
  935. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  936. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  937. else
  938. if Thing[2] == "Block3" then
  939. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  940. Mesh = Thing[7]
  941. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  942. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  943. else
  944. if Thing[2] == "Cylinder" then
  945. Mesh = Thing[7]
  946. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  947. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  948. else
  949. if Thing[2] == "Cylinder2" then
  950. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  951. Mesh = Thing[7]
  952. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  953. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  954. else
  955. if Thing[2] == "Blood" then
  956. Mesh = Thing[7]
  957. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  958. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  959. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  960. else
  961. if Thing[2] == "Elec" then
  962. Mesh = Thing[10]
  963. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  964. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  965. else
  966. if Thing[2] == "Disappear" then
  967. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  968. end
  969. end
  970. end
  971. end
  972. end
  973. end
  974. end
  975. end
  976. else
  977. Part.Parent = nil
  978. table.remove(Effects, e)
  979. end
  980. end
  981. end
  982. end
  983. end
  984. end
  985. end
  986. end
  987. end
  988. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement