Advertisement
PasterXIV

Untitled

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