XxTw1st3d_D3m0nxX

Sniper Flinger Please fix it

Feb 12th, 2021
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.54 KB | None | 0 0
  1. --Keybinds
  2. _G.UnReanimateKey = "q" --The keybind for unreanimating.
  3. _G.ReanimateKey = "e" --The keybind for reanimating.
  4. _G.R6ToggleKey = "r" --The keybind for toggling R15 to R6.
  5. _G.GodmodeToggleKey = "t" --The keybind for toggling godmode.
  6. --Options
  7. _G.CharacterBug = false --Set to true if your uppertorso floats when you use godmode with R15 To R6.
  8. _G.GodMode = true --Set to true if you want godmode.
  9. _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
  10. _G.AutoReanimate = true --Set to true if you want to auto reanimate and disable keybinds after executing.
  11.  
  12. loadstring(game:HttpGet("https://paste.ee/r/pt8Dx/0"))()
  13.  
  14. local script = game:GetObjects("rbxassetid://5904293434")[1]
  15.  
  16. workspace.FallenPartsDestroyHeight = -1000
  17.  
  18. print("Converted to FE by Smorkles aka Rawget#0001 \n xd big gamer")
  19.  
  20. local invpart = Instance.new("Part", game:GetService("Players").LocalPlayer.Character)
  21. invpart.Anchored = true
  22. invpart.Position = Vector3.new(0, -50, 0)
  23. invpart.CanCollide = false
  24. local InvAtt = Instance.new("Attachment", invpart)
  25.  
  26. local hat = game:GetService("Players").LocalPlayer.Character["Sniper"]
  27. hat.Handle.CustomAtt0:Destroy()
  28. hat.Handle.CustomAtt1:Destroy()
  29.  
  30. local function weld(part0, part1)
  31. local attachment0 = Instance.new("Attachment", part0)
  32. if part0 == hat.Handle then
  33. attachment0.Rotation = Vector3.new(0, 0, 0) --Edit if u want custom rotationing
  34. attachment0.Position = Vector3.new(0, 0, 0) --Edit if u want custom positioning
  35. end
  36. local attachment1 = Instance.new("Attachment", part1)
  37. local weldpos = Instance.new("AlignPosition", part0)
  38. weldpos.Attachment0 = attachment0
  39. weldpos.Attachment1 = attachment1
  40. weldpos.RigidityEnabled = false
  41. weldpos.ReactionForceEnabled = false
  42. weldpos.ApplyAtCenterOfMass = false
  43. weldpos.MaxForce = 10000
  44. weldpos.MaxVelocity = 10000
  45. weldpos.Responsiveness = 10000
  46. local weldrot = Instance.new("AlignOrientation", part0)
  47. weldrot.Attachment0 = attachment0
  48. weldrot.Attachment1 = attachment1
  49. weldrot.ReactionTorqueEnabled = true
  50. weldrot.PrimaryAxisOnly = false
  51. weldrot.MaxTorque = 10000
  52. weldrot.MaxAngularVelocity = 10000
  53. weldrot.Responsiveness = 10000
  54. end
  55.  
  56. local function invweld(part0)
  57. local attachment0 = Instance.new("Attachment", part0)
  58. local attachment1 = InvAtt
  59. local weldpos = Instance.new("AlignPosition", part0)
  60. weldpos.Enabled = false
  61. weldpos.Name = "InvPos"
  62. weldpos.Attachment0 = attachment0
  63. weldpos.Attachment1 = attachment1
  64. weldpos.RigidityEnabled = false
  65. weldpos.ReactionForceEnabled = false
  66. weldpos.ApplyAtCenterOfMass = false
  67. weldpos.MaxForce = 10000
  68. weldpos.MaxVelocity = 10000
  69. weldpos.Responsiveness = 10000
  70. local weldrot = Instance.new("AlignOrientation", part0)
  71. weldrot.Enabled = false
  72. weldrot.Name = "InvRot"
  73. weldrot.Attachment0 = attachment0
  74. weldrot.Attachment1 = attachment1
  75. weldrot.ReactionTorqueEnabled = true
  76. weldrot.PrimaryAxisOnly = false
  77. weldrot.MaxTorque = 10000
  78. weldrot.MaxAngularVelocity = 10000
  79. weldrot.Responsiveness = 10000
  80. end
  81.  
  82. weld(hat.Handle, script.Gun.Handle)
  83. invweld(hat.Handle)
  84.  
  85. local w = workspace[game.Players.LocalPlayer.Name].Sniper.Handle.Attachment
  86.  
  87. w.Position = Vector3.new(-1, -0.5, 0)
  88. w.Rotation = Vector3.new(100, 270, 100)
  89.  
  90.  
  91. local AHB = Instance.new("BindableEvent")
  92.  
  93. local FPS = 30
  94.  
  95. local TimeFrame = 0
  96.  
  97. local LastFrame = tick()
  98. local Frame = 1/FPS
  99.  
  100. game:service'RunService'.Heartbeat:connect(function(s,p)
  101. TimeFrame = TimeFrame + s
  102. if(TimeFrame >= Frame)then
  103. for i = 1,math.floor(TimeFrame/Frame) do
  104. AHB:Fire()
  105. end
  106. LastFrame=tick()
  107. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  108. end
  109. end)
  110.  
  111.  
  112. function swait(dur)
  113. if(dur == 0 or typeof(dur) ~= 'number')then
  114. AHB.Event:wait()
  115. else
  116. for i = 1, dur*FPS do
  117. AHB.Event:wait()
  118. end
  119. end
  120. end
  121.  
  122. -- converter by Drahazar
  123.  
  124. --created by helkern
  125. --some things might be taken from other scripts
  126.  
  127. if game:GetService("RunService"):IsStudio() then
  128. wait(1)
  129. else
  130. wait(1/60)
  131. end
  132.  
  133. Player = game:GetService("Players").LocalPlayer
  134. PlayerGui = Player.PlayerGui
  135. Cam = workspace.CurrentCamera
  136. Backpack = Player.Backpack
  137. Character = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
  138. Humanoid = Character.Humanoid
  139. Mouse = Player:GetMouse()
  140. RootPart = Character["HumanoidRootPart"]
  141. Torso = Character["Torso"]
  142. Head = Character["Head"]
  143. RightArm = Character["Right Arm"]
  144. LeftArm = Character["Left Arm"]
  145. RightLeg = Character["Right Leg"]
  146. LeftLeg = Character["Left Leg"]
  147. RootJoint = RootPart["RootJoint"]
  148. Neck = Torso["Neck"]
  149. RightShoulder = Torso["Right Shoulder"]
  150. LeftShoulder = Torso["Left Shoulder"]
  151. RightHip = Torso["Right Hip"]
  152. LeftHip = Torso["Left Hip"]
  153. local sick = Instance.new("Sound",Torso)
  154.  
  155. IT = Instance.new
  156. CF = CFrame.new
  157. VT = Vector3.new
  158. RAD = math.rad
  159. C3 = Color3.new
  160. UD2 = UDim2.new
  161. BRICKC = BrickColor.new
  162. ANGLES = CFrame.Angles
  163. EULER = CFrame.fromEulerAnglesXYZ
  164. COS = math.cos
  165. ACOS = math.acos
  166. SIN = math.sin
  167. ASIN = math.asin
  168. ABS = math.abs
  169. MRANDOM = math.random
  170. FLOOR = math.floor
  171.  
  172.  
  173. Animation_Speed = 3
  174. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  175. local Speed = 45
  176. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  177. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  178. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  179. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  180. local DAMAGEMULTIPLIER = 1
  181. local ANIM = "Idle"
  182. local ATTACK = false
  183. local EQUIPPED = false
  184. local HOLD = false
  185. local COMBO = 1
  186. local Rooted = false
  187. local SINE = 0
  188. local KEYHOLD = false
  189. local CHANGE = 2 / Animation_Speed
  190. local WALKINGANIM = false
  191. local VALUE1 = false
  192. local VALUE2 = false
  193. local ROBLOXIDLEANIMATION = IT("Animation")
  194. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  195. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  196. --ROBLOXIDLEANIMATION.Parent = Humanoid
  197. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  198. WEAPONGUI.Name = "Weapon GUI"
  199. local Effects = IT("Folder", Character.Parent)
  200. Effects.Name = "Effects"
  201. local ANIMATOR = Humanoid.Animator
  202. local ANIMATE = Character.Animate
  203. ANIMATOR:Destroy()
  204. local UNANCHOR = true
  205. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  206.  
  207. ArtificialHB = Instance.new("BindableEvent")
  208. ArtificialHB.Name = "ArtificialHB"
  209.  
  210. frame = Frame_Speed
  211. tf = 0
  212. allowframeloss = false
  213. tossremainder = false
  214. lastframe = tick()
  215. ArtificialHB:Fire()
  216.  
  217. game:GetService("RunService").Heartbeat:connect(function(s, p)
  218. tf = tf + s
  219. if tf >= frame then
  220. if allowframeloss then
  221. ArtificialHB:Fire()
  222. lastframe = tick()
  223. else
  224. for i = 1, math.floor(tf / frame) do
  225. ArtificialHB:Fire()
  226. end
  227. lastframe = tick()
  228. end
  229. if tossremainder then
  230. tf = 0
  231. else
  232. tf = tf - frame * math.floor(tf / frame)
  233. end
  234. end
  235. end)
  236.  
  237.  
  238. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  239. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  240. end
  241.  
  242. function PositiveAngle(NUMBER)
  243. if NUMBER >= 0 then
  244. NUMBER = 0
  245. end
  246. return NUMBER
  247. end
  248.  
  249. function NegativeAngle(NUMBER)
  250. if NUMBER <= 0 then
  251. NUMBER = 0
  252. end
  253. return NUMBER
  254. end
  255.  
  256. function Swait(NUMBER)
  257. if NUMBER == 0 or NUMBER == nil then
  258. ArtificialHB.Event:wait()
  259. else
  260. for i = 1, NUMBER do
  261. ArtificialHB.Event:wait()
  262. end
  263. end
  264. end
  265.  
  266. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  267. local NEWMESH = IT(MESH)
  268. if MESH == "SpecialMesh" then
  269. NEWMESH.MeshType = MESHTYPE
  270. if MESHID ~= "nil" and MESHID ~= "" then
  271. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  272. end
  273. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  274. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  275. end
  276. end
  277. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  278. NEWMESH.Scale = SCALE
  279. NEWMESH.Parent = PARENT
  280. return NEWMESH
  281. end
  282.  
  283. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  284. local NEWPART = IT("Part")
  285. NEWPART.formFactor = FORMFACTOR
  286. NEWPART.Reflectance = REFLECTANCE
  287. NEWPART.Transparency = TRANSPARENCY
  288. NEWPART.CanCollide = false
  289. NEWPART.Locked = true
  290. NEWPART.Anchored = true
  291. if ANCHOR == false then
  292. NEWPART.Anchored = false
  293. end
  294. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  295. NEWPART.Name = NAME
  296. NEWPART.Size = SIZE
  297. NEWPART.Position = Torso.Position
  298. NEWPART.Material = MATERIAL
  299. NEWPART:BreakJoints()
  300. NEWPART.Parent = PARENT
  301. return NEWPART
  302. end
  303.  
  304. local function weldBetween(a, b)
  305. local weldd = Instance.new("ManualWeld")
  306. weldd.Part0 = a
  307. weldd.Part1 = b
  308. weldd.C0 = CFrame.new()
  309. weldd.C1 = b.CFrame:inverse() * a.CFrame
  310. weldd.Parent = a
  311. return weldd
  312. end
  313.  
  314.  
  315. function Clerp(a, b, t)
  316. return a:lerp(b,t)
  317. end
  318.  
  319.  
  320. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  321. local frame = IT("Frame")
  322. frame.BackgroundTransparency = TRANSPARENCY
  323. frame.BorderSizePixel = BORDERSIZEPIXEL
  324. frame.Position = POSITION
  325. frame.Size = SIZE
  326. frame.BackgroundColor3 = COLOR
  327. frame.BorderColor3 = BORDERCOLOR
  328. frame.Name = NAME
  329. frame.Parent = PARENT
  330. return frame
  331. end
  332.  
  333. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  334. local label = IT("TextLabel")
  335. label.BackgroundTransparency = 1
  336. label.Size = UD2(1, 0, 1, 0)
  337. label.Position = UD2(0, 0, 0, 0)
  338. label.TextColor3 = TEXTCOLOR
  339. label.TextStrokeTransparency = STROKETRANSPARENCY
  340. label.TextTransparency = TRANSPARENCY
  341. label.FontSize = TEXTFONTSIZE
  342. label.Font = TEXTFONT
  343. label.BorderSizePixel = BORDERSIZEPIXEL
  344. label.TextScaled = false
  345. label.Text = TEXT
  346. label.Name = NAME
  347. label.Parent = PARENT
  348. return label
  349. end
  350.  
  351. function NoOutlines(PART)
  352. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  353. end
  354.  
  355. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  356. local NEWWELD = IT(TYPE)
  357. NEWWELD.Part0 = PART0
  358. NEWWELD.Part1 = PART1
  359. NEWWELD.C0 = C0
  360. NEWWELD.C1 = C1
  361. NEWWELD.Parent = PARENT
  362. return NEWWELD
  363. end
  364.  
  365. local S = IT("Sound")
  366. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  367. local NEWSOUND = nil
  368. coroutine.resume(coroutine.create(function()
  369. NEWSOUND = S:Clone()
  370. NEWSOUND.EmitterSize = 5*VOLUME
  371. NEWSOUND.Parent = PARENT
  372. NEWSOUND.Volume = VOLUME
  373. NEWSOUND.Pitch = PITCH
  374. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  375. NEWSOUND:play()
  376. if DOESLOOP == true then
  377. NEWSOUND.Looped = true
  378. else
  379. repeat wait(1) until NEWSOUND.Playing == false
  380. NEWSOUND:remove()
  381. end
  382. end))
  383. return NEWSOUND
  384. end
  385.  
  386. function CFrameFromTopBack(at, top, back)
  387. local right = top:Cross(back)
  388. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  389. end
  390.  
  391. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  392. function WACKYEFFECT(Table)
  393. local TYPE = (Table.EffectType or "Sphere")
  394. local SIZE = (Table.Size or VT(1,1,1))
  395. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  396. local TRANSPARENCY = (Table.Transparency or 0)
  397. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  398. local CFRAME = (Table.CFrame or Torso.CFrame)
  399. local MOVEDIRECTION = (Table.MoveToPos or nil)
  400. local ROTATION1 = (Table.RotationX or 0)
  401. local ROTATION2 = (Table.RotationY or 0)
  402. local ROTATION3 = (Table.RotationZ or 0)
  403. local MATERIAL = (Table.Material or "Neon")
  404. local COLOR = (Table.Color or C3(1,1,1))
  405. local TIME = (Table.Time or 45)
  406. local SOUNDID = (Table.SoundID or nil)
  407. local SOUNDPITCH = (Table.SoundPitch or nil)
  408. local SOUNDVOLUME = (Table.SoundVolume or nil)
  409. coroutine.resume(coroutine.create(function()
  410. local PLAYSSOUND = false
  411. local SOUND = nil
  412. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  413. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  414. PLAYSSOUND = true
  415. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  416. end
  417. EFFECT.Color = COLOR
  418. local MSH = nil
  419. if TYPE == "Sphere" then
  420. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  421. elseif TYPE == "Block" then
  422. MSH = IT("BlockMesh",EFFECT)
  423. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  424. elseif TYPE == "Wave" then
  425. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  426. elseif TYPE == "Ring" then
  427. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  428. elseif TYPE == "Slash" then
  429. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  430. elseif TYPE == "Round Slash" then
  431. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  432. elseif TYPE == "Swirl" then
  433. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  434. elseif TYPE == "Skull" then
  435. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  436. elseif TYPE == "Crystal" then
  437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  438. end
  439. if MSH ~= nil then
  440. local MOVESPEED = nil
  441. if MOVEDIRECTION ~= nil then
  442. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  443. end
  444. local GROWTH = SIZE - ENDSIZE
  445. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  446. if TYPE == "Block" then
  447. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  448. else
  449. EFFECT.CFrame = CFRAME
  450. end
  451. for LOOP = 1, TIME+1 do
  452. Swait()
  453. MSH.Scale = MSH.Scale - GROWTH/TIME
  454. if TYPE == "Wave" then
  455. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  456. end
  457. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  458. if TYPE == "Block" then
  459. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  460. else
  461. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  462. end
  463. if MOVEDIRECTION ~= nil then
  464. local ORI = EFFECT.Orientation
  465. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  466. EFFECT.Orientation = ORI
  467. end
  468. end
  469. if PLAYSSOUND == false then
  470. EFFECT:remove()
  471. else
  472. repeat Swait() until SOUND.Playing == false
  473. EFFECT:remove()
  474. end
  475. else
  476. if PLAYSSOUND == false then
  477. EFFECT:remove()
  478. else
  479. repeat Swait() until SOUND.Playing == false
  480. EFFECT:remove()
  481. end
  482. end
  483. end))
  484. end
  485.  
  486. function WACKYEFFECT2(Table)
  487. local TYPE = (Table.EffectType or "Sphere")
  488. local SIZE = (Table.Size or VT(1,1,1))
  489. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  490. local TRANSPARENCY = (Table.Transparency or 0)
  491. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  492. local CFRAME = (Table.CFrame or Torso.CFrame)
  493. local MOVEDIRECTION = (Table.MoveToPos or nil)
  494. local ROTATION1 = (Table.RotationX or 0)
  495. local ROTATION2 = (Table.RotationY or 0)
  496. local ROTATION3 = (Table.RotationZ or 0)
  497. local MATERIAL = (Table.Material or "Neon")
  498. local COLOR = (Table.Color or C3(1,1,1))
  499. local TIME = (Table.Time or 45)
  500. local SOUNDID = (Table.SoundID or nil)
  501. local SOUNDPITCH = (Table.SoundPitch or nil)
  502. local SOUNDVOLUME = (Table.SoundVolume or nil)
  503. local ISCHAOS = (Table.Chaos or false)
  504. coroutine.resume(coroutine.create(function()
  505. local PLAYSSOUND = false
  506. local SOUND = nil
  507. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC"a", "Effect", VT(1,1,1), true)
  508. EFFECT.Color = COLOR
  509. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  510. PLAYSSOUND = true
  511. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  512. end
  513.  
  514. local MSH = nil
  515. if TYPE == "Sphere" then
  516. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  517. elseif TYPE == "Block" or TYPE == "Box" then
  518. MSH = IT("BlockMesh",EFFECT)
  519. MSH.Scale = SIZE
  520. elseif TYPE == "Wave" then
  521. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  522. elseif TYPE == "Ring" then
  523. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  524. elseif TYPE == "Slash" then
  525. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  526. elseif TYPE == "Round Slash" then
  527. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  528. elseif TYPE == "Swirl" then
  529. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  530. elseif TYPE == "Skull" then
  531. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  532. elseif TYPE == "Crystal" then
  533. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  534. end
  535. if MSH ~= nil then
  536. local MOVESPEED = nil
  537. if MOVEDIRECTION ~= nil then
  538. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  539. end
  540. local GROWTH = SIZE - ENDSIZE
  541. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  542. if TYPE == "Block" then
  543. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  544. else
  545. EFFECT.CFrame = CFRAME
  546. end
  547. for LOOP = 1, TIME+1 do
  548. Swait()
  549. MSH.Scale = MSH.Scale - GROWTH/TIME
  550. if ISCHAOS == true then
  551. EFFECT.Color = BrickColor.Random().Color
  552. end
  553. if TYPE == "Wave" then
  554. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  555. end
  556. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  557.  
  558. if TYPE == "Block" then
  559. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  560. else
  561. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  562. end
  563. if MOVEDIRECTION ~= nil then
  564. local ORI = EFFECT.Orientation
  565. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  566. EFFECT.Orientation = ORI
  567. end
  568. end
  569. if PLAYSSOUND == false then
  570. EFFECT:remove()
  571. else
  572. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  573. EFFECT:remove()
  574. end
  575. else
  576. if PLAYSSOUND == false then
  577. EFFECT:remove()
  578. else
  579. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  580. EFFECT:remove()
  581. end
  582. end
  583. end))
  584. end
  585.  
  586. function WACKYEFFECT2(Table)
  587. local TYPE = (Table.EffectType or "Sphere")
  588. local SIZE = (Table.Size or VT(1,1,1))
  589. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  590. local TRANSPARENCY = (Table.Transparency or 0)
  591. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  592. local CFRAME = (Table.CFrame or Torso.CFrame)
  593. local MOVEDIRECTION = (Table.MoveToPos or nil)
  594. local ROTATION1 = (Table.RotationX or 0)
  595. local ROTATION2 = (Table.RotationY or 0)
  596. local ROTATION3 = (Table.RotationZ or 0)
  597. local MATERIAL = (Table.Material or "Neon")
  598. local COLOR = (Table.Color or C3(1,1,1))
  599. local TIME = (Table.Time or 45)
  600. local SOUNDID = (Table.SoundID or nil)
  601. local SOUNDPITCH = (Table.SoundPitch or nil)
  602. local SOUNDVOLUME = (Table.SoundVolume or nil)
  603. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  604. local BOOMERANG = (Table.Boomerang or 0)
  605. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  606. coroutine.resume(coroutine.create(function()
  607. local PLAYSSOUND = false
  608. local SOUND = nil
  609. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  610. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  611. PLAYSSOUND = true
  612. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  613. end
  614. EFFECT.Color = COLOR
  615. local MSH = nil
  616. if TYPE == "Sphere" then
  617. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  618. elseif TYPE == "Block" or TYPE == "Box" then
  619. MSH = IT("BlockMesh",EFFECT)
  620. MSH.Scale = SIZE
  621. elseif TYPE == "Wave" then
  622. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  623. elseif TYPE == "Ring" then
  624. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  625. elseif TYPE == "Slash" then
  626. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  627. elseif TYPE == "Round Slash" then
  628. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  629. elseif TYPE == "Swirl" then
  630. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  631. elseif TYPE == "Skull" then
  632. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  633. elseif TYPE == "Crystal" then
  634. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  635. end
  636. if MSH ~= nil then
  637. local BOOMR1 = 1+BOOMERANG/50
  638. local BOOMR2 = 1+SIZEBOOMERANG/50
  639. local MOVESPEED = nil
  640. if MOVEDIRECTION ~= nil then
  641. if USEBOOMERANGMATH == true then
  642. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  643. else
  644. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  645. end
  646. end
  647. local GROWTH = nil
  648. if USEBOOMERANGMATH == true then
  649. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  650. else
  651. GROWTH = (SIZE - ENDSIZE)
  652. end
  653. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  654. if TYPE == "Block" then
  655. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  656. else
  657. EFFECT.CFrame = CFRAME
  658. end
  659. if USEBOOMERANGMATH == true then
  660. for LOOP = 1, TIME+1 do
  661. Swait()
  662. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  663. if TYPE == "Wave" then
  664. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  665. end
  666. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  667. if TYPE == "Block" then
  668. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  669. else
  670. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  671. end
  672. if MOVEDIRECTION ~= nil then
  673. local ORI = EFFECT.Orientation
  674. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  675. EFFECT.Orientation = ORI
  676. end
  677. end
  678. else
  679. for LOOP = 1, TIME+1 do
  680. Swait()
  681. MSH.Scale = MSH.Scale - GROWTH/TIME
  682. if TYPE == "Wave" then
  683. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  684. end
  685. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  686. if TYPE == "Block" then
  687. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  688. else
  689. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  690. end
  691. if MOVEDIRECTION ~= nil then
  692. local ORI = EFFECT.Orientation
  693. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  694. EFFECT.Orientation = ORI
  695. end
  696. end
  697. end
  698. EFFECT.Transparency = 1
  699. if PLAYSSOUND == false then
  700. EFFECT:remove()
  701. else
  702. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  703. EFFECT:remove()
  704. end
  705. else
  706. if PLAYSSOUND == false then
  707. EFFECT:remove()
  708. else
  709. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  710. EFFECT:remove()
  711. end
  712. end
  713. end))
  714. end
  715.  
  716. function MakeForm(PART,TYPE)
  717. if TYPE == "Cyl" then
  718. local MSH = IT("CylinderMesh",PART)
  719. elseif TYPE == "Ball" then
  720. local MSH = IT("SpecialMesh",PART)
  721. MSH.MeshType = "Sphere"
  722. elseif TYPE == "Wedge" then
  723. local MSH = IT("SpecialMesh",PART)
  724. MSH.MeshType = "Wedge"
  725. end
  726. end
  727.  
  728. Debris = game:GetService("Debris")
  729.  
  730. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  731. local DIRECTION = CF(StartPos,EndPos).lookVector
  732. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  733. end
  734.  
  735. function Gyro(PARENT)
  736. local GYRO = IT("BodyGyro",PARENT)
  737. GYRO.D = 750
  738. GYRO.P = 20000
  739. GYRO.MaxTorque = VT(0,40000000,0)
  740. return GYRO
  741. end
  742.  
  743. function POSITION(PARENT)
  744. local grav = Instance.new("BodyPosition",PARENT)
  745. grav.D = 15
  746. grav.P = 20000
  747. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  748. return grav
  749. end
  750.  
  751. function FacialShadow()
  752. local SHADOWS = {}
  753. for i = 1, 16 do
  754. local FACE = CreatePart(3, Effects, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  755. FACE.Color = C3(0,0,0)
  756. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  757. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/25,0), CF(0, 0, 0))
  758. table.insert(SHADOWS,FACE)
  759. end
  760. local UNDO = function()
  761. for i = 1, #SHADOWS do
  762. SHADOWS[i]:remove()
  763. end
  764. end
  765. return UNDO
  766. end
  767.  
  768. function GetRoot(MODEL,ROOT)
  769. if ROOT == true then
  770. return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  771. else
  772. return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  773. end
  774. end
  775.  
  776. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  777. if FLOOR ~= nil then
  778. for i = 1, AMOUNT do
  779. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  780. DEBREE.Material = FLOOR.Material
  781. DEBREE.Color = FLOOR.Color
  782. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  783. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  784. coroutine.resume(coroutine.create(function()
  785. Swait(15)
  786. DEBREE.Parent = workspace
  787. DEBREE.CanCollide = true
  788. Debris:AddItem(DEBREE,SWAIT)
  789. end))
  790. end
  791. end
  792. end
  793.  
  794. function SHAKECAM(POSITION,RANGE,INTENSITY,TIME)
  795. local CHILDREN = workspace:GetDescendants()
  796. for index, CHILD in pairs(CHILDREN) do
  797. if CHILD.ClassName == "Model" then
  798. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  799. if HUM then
  800. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  801. if TORSO then
  802. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  803. local CAMSHAKER = script.CamShake:Clone()
  804. CAMSHAKER.Shake.Value = INTENSITY
  805. CAMSHAKER.Timer.Value = TIME
  806. CAMSHAKER.Parent = CHILD
  807. CAMSHAKER.Disabled = false
  808. end
  809. end
  810. end
  811. end
  812. end
  813. end
  814.  
  815. --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
  816. function Lightning(Table)
  817. local Color = Table.Color or C3(1,1,1)
  818. local StartPos = Table.Start or Torso.Position
  819. local EndPos = Table.End or Mouse.Hit.p
  820. local SegmentLength = Table.SegmentL or 2
  821. local Thickness = Table.Thickness or 0.1
  822. local Dissapear = Table.DoesFade or false
  823. local Parent = Table.Ignore or Character
  824. local MaxDist = Table.MaxDist or 400
  825. local Branches = Table.Branches or false
  826. local Thicken = Table.Thicken or false
  827. local FadeTime = Table.FadeTime or 15
  828. local FadeIn = Table.FadeIn or false
  829. local Material = Table.Material or "Neon"
  830. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  831. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
  832. local LIGHTNINGMODEL = IT("Model",Effects)
  833. LIGHTNINGMODEL.Name = "Lightning"
  834. local LastBolt = nil
  835. for E = 1, DISTANCE do
  836. local ExtraSize = 0
  837. if Thicken == true then
  838. ExtraSize = (DISTANCE-E)/15
  839. end
  840. local TRANSPARENCY = 0
  841. if FadeIn == true then
  842. TRANSPARENCY = 1-(E/(DISTANCE/1.5))
  843. if TRANSPARENCY < 0 then
  844. TRANSPARENCY = 0
  845. end
  846. end
  847. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  848. PART.Color = Color
  849. --MakeForm(PART,"Cyl")
  850. if LastBolt == nil then
  851. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  852. else
  853. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  854. end
  855. LastBolt = PART
  856. if Branches == true and E < (DISTANCE-5) then
  857. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  858. if CHOICE == 1 then
  859. local LASTBRANCH = nil
  860. for i = 1, MRANDOM(2,5) do
  861. local ExtraSize2 = 0
  862. if Thicken == true then
  863. ExtraSize = ((DISTANCE-E)/25)/i
  864. end
  865. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  866. PART.Color = Color
  867. MakeForm(PART,"Cyl")
  868. if LASTBRANCH == nil then
  869. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  870. else
  871. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  872. end
  873. LASTBRANCH = PART
  874. end
  875. end
  876. end
  877. end
  878. if Dissapear == true then
  879. coroutine.resume(coroutine.create(function()
  880. for i = 1, FadeTime do
  881. Swait()
  882. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  883. if c.ClassName == "Part" then
  884. c.Transparency = c.Transparency + (i/FadeTime)/10
  885. end
  886. end
  887. end
  888. LIGHTNINGMODEL:remove()
  889. end))
  890. elseif Dissapear == false then
  891. Debris:AddItem(LIGHTNINGMODEL,0.1)
  892. end
  893. return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  894. end
  895.  
  896.  
  897. --weap
  898. local SONG = 590141342
  899.  
  900. local shotgunact = false
  901. local gunact = true
  902.  
  903. for _, c in pairs(Character:GetChildren()) do
  904. if c and c.Parent then
  905. if c.ClassName == "Accessory" then
  906. local ACCESSORY = c
  907. local HANDLE = c.Handle
  908. HANDLE.Parent = Character
  909. if c then
  910. if HANDLE:FindFirstChild("HatAttachment") or HANDLE:FindFirstChild("HairAttachment") then
  911. local WLD = weldBetween(Head,HANDLE)
  912. elseif HANDLE:FindFirstChild("FaceFrontAttachment") then
  913. HANDLE:remove()
  914. else
  915. local WLD = weldBetween(Torso,HANDLE)
  916. end
  917. end
  918. ACCESSORY:remove()
  919. end
  920. end
  921. end
  922.  
  923. local gun = script.Gun
  924. for i,v in pairs(gun:GetChildren()) do
  925. v.Anchored = false
  926. end
  927. local hole = gun.Hole
  928. local gunw = CreateWeldOrSnapOrMotor("Weld",LeftArm,gun.Handle,LeftArm,CF(0,0,.5) * ANGLES(RAD(90),0,0),CF(0,0,0))
  929. gun.Parent = Character
  930.  
  931. local shotgun = script.BShot
  932. for i,v in pairs(shotgun:GetChildren()) do
  933. v.Anchored = false
  934. end
  935. local sgw = CreateWeldOrSnapOrMotor("Weld",RightArm,shotgun.Main,RightArm,CF(0,.4,0),CF(0,0,0))
  936. shotgun.Parent = nil
  937.  
  938. local fshot = script.FShot
  939. for i,v in pairs(fshot:GetChildren()) do
  940. v.Anchored = false
  941. end
  942. local fsw = CreateWeldOrSnapOrMotor("Weld",Torso,fshot.Main,Torso,CF(0,0,0),CF(0,0,0))
  943. fshot.Parent = Character
  944.  
  945. local mascc = script.Mask
  946. for i,v in pairs(mascc:GetChildren()) do
  947. v.Anchored = false
  948. end
  949. local mw = CreateWeldOrSnapOrMotor("Weld",Head,mascc.Middle,Head,CF(0,0,0),CF(0,0,0))
  950. mascc.Parent = Character
  951.  
  952. local fgun = script.FakeGun
  953. for i,v in pairs(fgun:GetChildren()) do
  954. v.Anchored = false
  955. end
  956. local fgunw = CreateWeldOrSnapOrMotor("Weld",Torso,fgun.Main,Torso,CF(0,0,0),CF(0,0,0))
  957. fgun.Parent = nil
  958.  
  959. local hole2 = shotgun.Hole
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967. --dmg
  968.  
  969. function poop(MODEL)
  970. MODEL:BreakJoints()
  971. for index, CHILD in pairs(MODEL:GetChildren()) do
  972. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  973. if CHILD.Name == "Head" then
  974. WACKYEFFECT2({Time = 120, EffectType = "Box", Size = VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z), Size2 = (VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z)), Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(MRANDOM(-30,30)/10,MRANDOM(-30,30)/10,MRANDOM(-30,30)/10), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, SizeBoomerang = 0, Boomerang = 35})
  975. elseif CHILD.Name ~= "HumanoidRootPart" then
  976. WACKYEFFECT2({Time = 120, EffectType = "Box", Size = CHILD.Size, Size2 = CHILD.Size, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(MRANDOM(-30,30)/10,MRANDOM(-30,30)/10,MRANDOM(-30,30)/10), RotationY = 0, RotationZ = 0 ,Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, SizeBoomerang = 0, Boomerang = 35})
  977. end
  978. if CHILD.Name == "Torso" or CHILD.Name == "UpperTorso" then
  979. WACKYEFFECT2({Time = 60, EffectType = "Sphere", Size = VT(0.2,0.2,0.2)*CHILD.Size.Magnitude, Size2 = VT(6,6,6)*CHILD.Size.Magnitude, Transparency = 0.6, Transparency2 = 1, CFrame = CF(CHILD.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 301928691, SoundPitch = 2, SoundVolume = 10, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  980. end
  981. CHILD:remove()
  982. end
  983. end
  984. Debris:AddItem(MODEL,6)
  985. end
  986.  
  987. function ApplyDamage(Humanoid,Damage)
  988. Damage = Damage * DAMAGEMULTIPLIER
  989. if Humanoid.Health < 2000 then
  990. if Humanoid.Health - Damage > 0 then
  991. Humanoid.Health = Humanoid.Health - Damage
  992. else
  993. poop(Humanoid.Parent)
  994. end
  995. else
  996. poop(Humanoid.Parent)
  997. end
  998. end
  999.  
  1000. function ApplyAeO(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1001. for index, CHILD in pairs(workspace:GetDescendants()) do
  1002. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1003. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1004. if HUM then
  1005. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1006. if TORSO then
  1007. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1008. if INSTAKILL == true then
  1009. poop(CHILD)
  1010. else
  1011. local DMG = MRANDOM(MINDMG,MAXDMG)
  1012. ApplyDamage(HUM,DMG)
  1013. end
  1014. if FLING > 0 then
  1015. for _, c in pairs(CHILD:GetChildren()) do
  1016. if c:IsA("BasePart") then
  1017. local bv = Instance.new("BodyVelocity")
  1018. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1019. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1020. bv.Parent = c
  1021. Debris:AddItem(bv,0.05)
  1022. end
  1023. end
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031.  
  1032. --attacks
  1033.  
  1034. function cs()
  1035. if SONG == 590141342 then
  1036. SONG = 212377035
  1037. elseif SONG == 212377035 then
  1038. SONG = 589973177
  1039. elseif SONG == 589973177 then
  1040. SONG = 1833183591
  1041. elseif SONG == 1833183591 then
  1042. SONG = 2982966292
  1043. elseif SONG == 2982966292 then
  1044. SONG = 616388964
  1045. elseif SONG == 616388964 then
  1046. SONG = 1342763538
  1047. elseif SONG == 1342763538 then
  1048. SONG = 886085413
  1049. elseif SONG == 886085413 then
  1050. SONG = 3704092097
  1051. elseif SONG == 3704092097 then
  1052. SONG = 1589396874
  1053. elseif SONG == 1589396874 then
  1054. SONG = 168159280
  1055. elseif SONG == 168159280 then
  1056. SONG = 296659202
  1057. elseif SONG == 296659202 then
  1058. SONG = 608671887
  1059. elseif SONG == 608671887 then
  1060. SONG = 270719635
  1061. elseif SONG == 270719635 then
  1062. SONG = 3206925146
  1063. elseif SONG == 3206925146 then
  1064. SONG = 383141805
  1065. elseif SONG == 383141805 then
  1066. SONG = 590141342
  1067. end
  1068. end
  1069.  
  1070. function swshotg()
  1071. ATTACK = true
  1072. if shotgunact == false then
  1073. for i = 0,20 do
  1074. local Alpha = .1
  1075. Swait()
  1076. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1077. if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
  1078. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.5,0.8,0.6)*ANGLES(RAD(57.3),RAD(56.6),RAD(-61.7)),Alpha)
  1079. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-104.3- 4 * SIN(SINE/35)),RAD(5.3),RAD(124.5)),Alpha)
  1080. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1081. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1082. end
  1083. shotgunact = true
  1084. else
  1085. for i = 0,20 do
  1086. local Alpha = .1
  1087. Swait()
  1088. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1089. if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
  1090. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.5,0.8,0.6)*ANGLES(RAD(57.3),RAD(56.6),RAD(-61.7)),Alpha)
  1091. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-104.3- 4 * SIN(SINE/35)),RAD(5.3),RAD(124.5)),Alpha)
  1092. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1093. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1094. end
  1095. shotgunact = false
  1096. end
  1097. ATTACK = false
  1098. end
  1099.  
  1100. function swgun()
  1101. ATTACK = true
  1102. if gunact == true then
  1103. for i = 0,20 do
  1104. local Alpha = .1
  1105. Swait()
  1106. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1107. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.8,-0.2)*ANGLES(RAD(-20.1),RAD(-30),RAD(44.7)),Alpha)
  1108. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1109. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-139.4)),Alpha)
  1110. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1111. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1112. end
  1113. gunact = false
  1114. else
  1115. for i = 0,20 do
  1116. local Alpha = .1
  1117. Swait()
  1118. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1119. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.8,-0.2)*ANGLES(RAD(-20.1),RAD(-30),RAD(44.7)),Alpha)
  1120. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1121. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-139.4)),Alpha)
  1122. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1123. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1124. end
  1125. gunact = true
  1126. end
  1127. ATTACK = false
  1128. end
  1129.  
  1130. function gunsh()
  1131. ATTACK = true
  1132. for i = 0,25 do
  1133. Swait()
  1134. local Alpha = .1
  1135. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1136. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.3,0)*ANGLES(RAD(-130.8),RAD(-85.3),RAD(151.3)),Alpha)
  1137. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1138. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1139. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1140. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1141. end
  1142. repeat
  1143. for i=0, 0.25, 0.1 / Animation_Speed do
  1144. Swait()
  1145. local Alpha = .1
  1146. local Alpha = .1
  1147. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1148. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.1,0)*ANGLES(RAD(-130.8),RAD(-85.3),RAD(103)),Alpha)
  1149. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1150. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1151. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1152. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1153. end
  1154. --coroutine.resume(coroutine.create(function()
  1155. local HIT,POS = CastProperRay(hole.Position, Mouse.Hit.p, 500, Character)
  1156. local DISTANCE = (POS - hole.Position).Magnitude
  1157. if HIT then
  1158.  
  1159. WACKYEFFECT2({Time = MRANDOM(90,110), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(7,7,7), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 25})
  1160. end
  1161. for i = 1,6 do
  1162. WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Round Slash", Size = Vector3.new(0.01,0.01,0.01) * MRANDOM(.5,1.5), Size2 = Vector3.new(0,0,0), Transparency = 0.3, Transparency2 = 1, CFrame = hole.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(0), RAD(MRANDOM(60,120))) * CF(0,0,0), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Glass", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,8)/10, SoundVolume = 8,UseBoomerangMath = true, SizeBoomerang = 15})
  1163. end
  1164. WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(hole.Position), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
  1165. WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Box", Size = Vector3.new(0,0,DISTANCE), Size2 = Vector3.new(.6,.6,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(hole.Position,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(1,0,0), SoundID = 419268760, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 8, Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
  1166. --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,0,0), Start = hole.Position, End = POS, SegmentL = 2, Thickness = .5, DoesFade = true, Ignore = Character, MaxDist = 5, Branches = true, FadeTime = 150, Thicken = false})
  1167. for i=0, 0.2, 0.1 / Animation_Speed do
  1168. Swait()
  1169. local Alpha = .1
  1170. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1171. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-130.8),RAD(-85.3),RAD(160)),Alpha)
  1172. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1173. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1174. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1175. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1176. end
  1177. if shotgunact == true then break end
  1178. until HOLD == false
  1179. ATTACK = false
  1180. end
  1181.  
  1182. function shotgunsh()
  1183. ATTACK = true
  1184. CreateSound(1498950813,RightArm,5,0.8,false)
  1185. for i = 0,26 do
  1186. Swait()
  1187. local Alpha = .1
  1188. sgw.C1 = sgw.C1:lerp(CF(0,-1,.3)*ANGLES(RAD(90),RAD(0),RAD(0)),.1)
  1189. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1190. if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
  1191. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.4,-0.2)*ANGLES(RAD(-169.7),RAD(83.4),RAD(-105.4)),Alpha)
  1192. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1193. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1194. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1195. end
  1196. CreateSound(1835530642,RightArm,7,.7,false)
  1197. for i = 1,6 do
  1198. local p1 = CF(hole2.Position,Mouse.Hit.p)*CF(0,0,-45).p
  1199. local ap = CF(hole2.Position,p1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,MRANDOM(5,75)/10).p
  1200. local HIT,POS = CastProperRay(hole2.Position,ap,1000,Character)
  1201. local DISTANCE = (POS - hole2.Position).Magnitude
  1202. if HIT then
  1203. -- xd(POS,4,0,0,0,true)
  1204. WACKYEFFECT2({Time = MRANDOM(90,110), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(7,7,7), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 25})
  1205. end
  1206. for i = 1,6 do
  1207. WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Round Slash", Size = Vector3.new(0.01,0.01,0.01) * MRANDOM(.5,1.5), Size2 = Vector3.new(0,0,0), Transparency = 0.3, Transparency2 = 1, CFrame = hole2.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(0), RAD(MRANDOM(60,120))) * CF(0,0,0), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Glass", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,8)/10, SoundVolume = 8,UseBoomerangMath = true, SizeBoomerang = 15})
  1208. end
  1209. WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(hole2.Position), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
  1210. WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Box", Size = Vector3.new(0,0,DISTANCE), Size2 = Vector3.new(.6,.6,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(hole2.Position,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 8, Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
  1211. end
  1212. for i = 0,35 do
  1213. local Alpha = .2
  1214. Swait()
  1215. sgw.C1 = sgw.C1:lerp(CF(0,-1,.3)*ANGLES(RAD(90),RAD(0),RAD(0)),.1)
  1216. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1217. if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
  1218. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.1,0.3,-0.1)*ANGLES(RAD(-169.7),RAD(83.4),RAD(-55.3)),Alpha)
  1219. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1220. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1221. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1222. end
  1223. ATTACK = false
  1224. end
  1225.  
  1226. function magic1()
  1227. ATTACK = true
  1228. local a = false
  1229. for i = 0,35 do
  1230. Swait()
  1231. local Alpha = .1
  1232. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,1.2+ 0.5 * COS(SINE/35),0)*ANGLES(RAD(-83.2+ 7 * SIN(SINE/35)),RAD(8.3),RAD(-129.6)),Alpha)
  1233. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0)*ANGLES(RAD(-8.3),RAD(-74.4),RAD(-175.8)),Alpha)
  1234. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1235. Neck.C0 =Neck.C0:lerp(CF(-0.2,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(129.1)),Alpha)
  1236. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1237. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1238. end
  1239. local sp = CreatePart(3,Effects,"Neon",0,0,"Really red","magic lol",VT(7.5,7.5,7.5),true)
  1240. MakeForm(sp,"Ball")
  1241. sp.CFrame = LeftArm.CFrame * CF(0,-3,0)
  1242. WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp.Size.Magnitude, Size2 = VT(15,15,15), Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 203691785, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1243. coroutine.resume(coroutine.create(function()
  1244. repeat
  1245. Swait()
  1246. WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.56,.56,.56), Size2 = Vector3.new(.56,.56,.56), Transparency = 0.3, Transparency2 = 1, CFrame = sp.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
  1247. until a == true
  1248. end))
  1249. --swait(.5)
  1250. coroutine.resume(coroutine.create(function()
  1251. sp.CFrame = CF(sp.Position,Mouse.Hit.p)
  1252. for i = 1,250 do
  1253. Swait()
  1254. sp.CFrame = sp.CFrame * CF(0,0,-2)
  1255. local hit,pos = Raycast(sp.Position,sp.CFrame.lookVector,5,Character)
  1256. if hit then break end
  1257. end
  1258. -- xd(sp.Position,12,0,0,0,true)
  1259. for i = 1,15 do
  1260. WACKYEFFECT2({Time = MRANDOM(80,90), EffectType = "Sphere", Size = VT(1,10,1), Size2 = VT(5.5,55,5.5), Transparency = 0, Transparency2 = 1, CFrame = CF(sp.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1261. end
  1262. WACKYEFFECT2({Time = 60, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp.Size.Magnitude, Size2 = VT(5,5,5)*sp.Size.Magnitude, Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1263. sp:Destroy()
  1264. a = true
  1265. end))
  1266. for i = 0,20 do
  1267. Swait()
  1268. local Alpha = .1
  1269. RootJoint.C0 = RootJoint.C0:lerp(CF(0.1,1.2+ 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-82.1+ 7 * SIN(SINE/35)),RAD(-7.2),RAD(137.8)),Alpha)
  1270. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.5,0.6,-0.9)*ANGLES(RAD(97.5),RAD(-35.9),RAD(60.9)),Alpha)
  1271. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
  1272. Neck.C0 =Neck.C0:lerp(CF(0.1,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-137.3)),Alpha)
  1273. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1274. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1275. end
  1276. ATTACK = false
  1277. end
  1278.  
  1279. function magic2()
  1280. ATTACK = true
  1281. local first = false
  1282. local stuck = false
  1283. coroutine.resume(coroutine.create(function()
  1284. repeat
  1285. Swait()
  1286. local Alpha = .1
  1287. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1288. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1.3,-0.2,0.3)*ANGLES(RAD(-101.3),RAD(-1.8),RAD(-84.9)),Alpha)
  1289. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.4,-0.2,0.2)*ANGLES(RAD(-97.5),RAD(-1.2),RAD(92.2)),Alpha)
  1290. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1291. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1292. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1293. until first == true
  1294. end))
  1295. local sp1 = CreatePart(3,nil,"Neon",0,0,"Really red","magic lol",VT(2.89, 2.89, 2.89),true)
  1296. MakeForm(sp1,"Ball")
  1297. local sp2 = CreatePart(3,nil,"Neon",0,0,"Really red","magic lol",VT(2.89, 2.89, 2.89),true)
  1298. MakeForm(sp2,"Ball")
  1299. sp1.CFrame = LeftArm.CFrame * CF(0,-1,0)
  1300. sp2.CFrame = RightArm.CFrame * CF(0,-1,0)
  1301. WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp1.Size.Magnitude, Size2 = VT(10,10,10), Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp1.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 203691785, SoundPitch = 1, SoundVolume = 10, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1302. WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp2.Size.Magnitude, Size2 = VT(10,10,10), Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp2.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1303. swait(.3)
  1304. coroutine.resume(coroutine.create(function()
  1305. repeat
  1306. Swait()
  1307. pcall(function()
  1308. sp1.Parent = Effects
  1309. sp2.Parent = Effects
  1310. end)
  1311. sp1.CFrame = LeftArm.CFrame * CF(0,-1,0)
  1312. sp2.CFrame = RightArm.CFrame * CF(0,-1,0)
  1313. WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.2,.2,.2), Size2 = Vector3.new(.2,.2,.2), Transparency = 0.3, Transparency2 = 1, CFrame = sp1.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
  1314. WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.2,.2,.2), Size2 = Vector3.new(.2,.2,.2), Transparency = 0.3, Transparency2 = 1, CFrame = sp2.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
  1315. until stuck == true
  1316. end))
  1317. first = true
  1318. for i = 0,20 do
  1319. Swait()
  1320. local Alpha = .1
  1321. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.3)*ANGLES(RAD(-64.9+ 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1322. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1.3,-0.2,0.3)*ANGLES(RAD(-101.3),RAD(-1.8),RAD(-68.5)),Alpha)
  1323. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.4,-0.2,0.3)*ANGLES(RAD(-97.5),RAD(-1.2),RAD(71.5)),Alpha)
  1324. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1325. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1.1,-0.1)*ANGLES(RAD(-24.6),RAD(-86.3),RAD(0)),Alpha)
  1326. RightHip.C0 = RightHip.C0:lerp(CF(1,-0.2,-0.8)*ANGLES(RAD(-22.1),RAD(84.7),RAD(0)),Alpha)
  1327. end
  1328. for i = 1,15 do
  1329. WACKYEFFECT2({Time = MRANDOM(80,90), EffectType = "Sphere", Size = VT(1,10,1), Size2 = VT(1.5,15,1.5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * CF(0,0,-2) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1330. end
  1331. WACKYEFFECT2({Time = 120, EffectType = "Sphere", Size = VT(.2,.2,.2)*Torso.Size.Magnitude, Size2 = VT(12,12,12), Transparency = 0.6, Transparency2 = 1, CFrame = CF(RootPart.Position) * CF(0,0,-2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1332. -- xd(sp1.Position,14,0,0,0,true)
  1333. sp1:Destroy()
  1334. sp2:Destroy()
  1335. stuck = true
  1336. for i = 0,26 do
  1337. Swait()
  1338. local Alpha = .2
  1339. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.1 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-84.9+ 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1340. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1.4,-0.3,-0.3)*ANGLES(RAD(-101.3),RAD(-1.8),RAD(117.1)),Alpha)
  1341. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.5,-0.2,-0.2)*ANGLES(RAD(-97.5),RAD(-1.2),RAD(-120.2)),Alpha)
  1342. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1343. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-0.9,-0.3)*ANGLES(RAD(-4.5),RAD(-86.3),RAD(0)),Alpha)
  1344. RightHip.C0 = RightHip.C0:lerp(CF(1,0.2,-0.6)*ANGLES(RAD(-2),RAD(84.7),RAD(0)),Alpha)
  1345. end
  1346. ATTACK = false
  1347. end
  1348.  
  1349. function magic3()
  1350. ATTACK = true
  1351. local b = false
  1352. for i = 0,20 do
  1353. Swait()
  1354. local Alpha = .1
  1355. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,1.2 + 0.5 * COS(SINE/35),0)*ANGLES(RAD(-82.9+ 7 * SIN(SINE/35)),RAD(8),RAD(-131.9)),Alpha)
  1356. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5,0)*ANGLES(RAD(-3.9),RAD(-78.7),RAD(3.4)),Alpha)
  1357. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.8,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(170.3)),Alpha)
  1358. Neck.C0 =Neck.C0:lerp(CF(-0.2,1,0.1)*ANGLES(RAD(-100.7),RAD(0),RAD(131.4)),Alpha)
  1359. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
  1360. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
  1361. end
  1362. local sph = CreatePart(3,Effects,"Neon",0,0,"Really red","magic lol",VT(2.31, 2.31, 2.31)*2,true)
  1363. MakeForm(sph,"Ball")
  1364. sph.CFrame = RightArm.CFrame * CF(0,-3,0)
  1365. WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sph.Size.Magnitude, Size2 = VT(5,5,5)*2, Transparency = 0.6, Transparency2 = 1, CFrame = CF(sph.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 203691785, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1366. coroutine.resume(coroutine.create(function()
  1367. repeat
  1368. Swait()
  1369. sph.CFrame = RightArm.CFrame * CF(0,-3,0)
  1370. WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.5,.5,.5), Size2 = Vector3.new(.5,.5,.5), Transparency = 0.3, Transparency2 = 1, CFrame = sph.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
  1371. until b == true
  1372. end))
  1373. for i = 0,20 do
  1374. Swait()
  1375. local Alpha = .1
  1376. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,1.2 + 0.5 * COS(SINE/35),0.2)*ANGLES(RAD(-67.2+ 7 * SIN(SINE/35)),RAD(8),RAD(-131.9)),Alpha)
  1377. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5,0)*ANGLES(RAD(-3.9),RAD(-78.7),RAD(3.4)),Alpha)
  1378. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.8,-0.2)*ANGLES(RAD(-8.7),RAD(71.8),RAD(-167.5)),Alpha)
  1379. Neck.C0 =Neck.C0:lerp(CF(-0.2,1,0.1)*ANGLES(RAD(-100.7),RAD(0),RAD(131.4)),Alpha)
  1380. LeftHip.C0 = LeftHip.C0:lerp(CF(-1.1,-0.9,-0.1)*ANGLES(RAD(-88.8),RAD(-77.4),RAD(-68.6)),Alpha)
  1381. RightHip.C0 = RightHip.C0:lerp(CF(1.1,-0.4,-0.6)*ANGLES(RAD(49.1),RAD(77.3),RAD(-67.7)),Alpha)
  1382. end
  1383. for i = 1,15 do
  1384. WACKYEFFECT2({Time = MRANDOM(40,50), EffectType = "Sphere", Size = VT(1,10,1), Size2 = VT(1.5,15,1.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame * CF(1,-3,0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1385. end
  1386. WACKYEFFECT2({Time = 40, EffectType = "Sphere", Size = VT(.2,.01,.2)*sph.Size.Magnitude, Size2 = VT(3.5,0.1,3.5)*sph.Size.Magnitude, Transparency = 0.6, Transparency2 = 1, CFrame = RootPart.CFrame * CF(1,-3,0) * ANGLES(RAD(0),RAD(0),RAD(0)) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1387. sph:Destroy()
  1388. b = true
  1389. local hf,hp = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 3.7, Character)
  1390. if hf then
  1391. coroutine.resume(coroutine.create(function()
  1392. for i = 0,6 do
  1393. local po = RootPart.CFrame*CF(0,0,-i*22)
  1394. local hf2,hp2 = Raycast(po.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 3.7, Character)
  1395. if hf then
  1396. local ab = CF(hp2) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1397. WACKYEFFECT2({Time = 120, EffectType = "Sphere", Size = VT(5,10,5), Size2 = VT(30,50,30), Transparency = 0.6, Transparency2 = 1, CFrame = ab --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1398. WACKYEFFECT2({Time = 120, EffectType = "Sphere", Size = VT(5,10,5), Size2 = VT(15,35,15), Transparency = 0.6, Transparency2 = 1, CFrame = ab --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.7,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
  1399. WACKYEFFECT2({Time = 50, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(20.5,2,20.5), Transparency = 0.25, Transparency2 = 1, CFrame = ab, MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/12, SoundVolume = 2})
  1400. -- xd(ab.p,15,0,0,0,true)
  1401. swait(.1)
  1402. end
  1403. end
  1404. end))
  1405. end
  1406. for i = 0,26 do
  1407. Swait()
  1408. local Alpha = .2
  1409. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,-1.2,0.3)*ANGLES(RAD(-108.9),RAD(8),RAD(-131.9)),Alpha)
  1410. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.9,0.1,0.2)*ANGLES(RAD(-84.3),RAD(-48.5),RAD(-59.8)),Alpha)
  1411. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.2,0.1,-0.1)*ANGLES(RAD(-144.2),RAD(53.2),RAD(165.1)),Alpha)
  1412. Neck.C0 =Neck.C0:lerp(CF(-0.1,1,0.1)*ANGLES(RAD(-100.7),RAD(0),RAD(144.5)),Alpha)
  1413. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,0.1,-0.6)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(-9.5)),Alpha)
  1414. RightHip.C0 = RightHip.C0:lerp(CF(1,-1,-0.9)*ANGLES(RAD(-7.7),RAD(84.7),RAD(-85.1)),Alpha)
  1415. end
  1416. ATTACK = false
  1417. end
  1418.  
  1419. function tuant()
  1420. ATTACK = true
  1421. CreateSound(3724749130,Head,8,1,false)
  1422. for i = 0,75 do
  1423. Swait()
  1424. local Alpha = .4
  1425. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.07 * COS(SINE/5) + 0.5 * COS(SINE/35),0.3)*ANGLES(RAD(-59.8),RAD(0),RAD(-180)),Alpha)
  1426. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.4 + 0.1 * SIN(SINE/5),0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(33.8)),Alpha)
  1427. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5+ 0.1 * SIN(SINE/5),0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(-20.1)),Alpha)
  1428. Neck.C0 =Neck.C0:lerp(CF(0,1,-0.1)*ANGLES(RAD(-81),RAD(0),RAD(-180)),Alpha)
  1429. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1.2,0.1)*ANGLES(RAD(-29.6),RAD(-86.3),RAD(0)),Alpha)
  1430. RightHip.C0 = RightHip.C0:lerp(CF(1,-0.4,-0.7)*ANGLES(RAD(-27.1),RAD(84.7),RAD(0)),Alpha)
  1431. end
  1432. ATTACK = false
  1433. end
  1434.  
  1435.  
  1436. --keys
  1437. function MouseDown(Mouse)
  1438. HOLD = true
  1439. if ATTACK == false then
  1440. if shotgunact == true and gunact == true then
  1441. if COMBO == 1 then
  1442. gunsh()
  1443. COMBO = 2
  1444. elseif COMBO == 2 then
  1445. shotgunsh()
  1446. COMBO = 1
  1447. end
  1448. elseif shotgunact == true and gunact == false then
  1449. shotgunsh()
  1450. elseif shotgunact == false and gunact == true then
  1451. gunsh()
  1452. end
  1453. end
  1454. end
  1455.  
  1456. function MouseUp(Mouse)
  1457. HOLD = false
  1458. end
  1459. local hrpz = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  1460.  
  1461. hrpz.Name = "HumanoidRootPart"
  1462. hrpz.Transparency = 0.5
  1463. hrpz.Anchored = false
  1464. if hrpz:FindFirstChildOfClass("AlignPosition") then
  1465. hrpz:FindFirstChildOfClass("AlignPosition"):Destroy()
  1466. end
  1467. if hrpz:FindFirstChildOfClass("AlignOrientation") then
  1468. hrpz:FindFirstChildOfClass("AlignOrientation"):Destroy()
  1469. end
  1470. local bp = Instance.new("BodyPosition", hrpz)
  1471. bp.Position = game:GetService("Players").LocalPlayer.Character.NullwareReanim.HumanoidRootPart.Position
  1472. bp.D = 9999999
  1473. bp.P = 999999999999999
  1474. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1475. local flinger = Instance.new("BodyAngularVelocity",hrpz)
  1476. flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1477. flinger.P = 1000000000000000000000000000
  1478. flinger.AngularVelocity = Vector3.new(10000,10000,10000)
  1479. spawn(function()
  1480. while game:GetService("RunService").Heartbeat:Wait() do
  1481. if ATTACK == false then
  1482. bp.Position = game:GetService("Players").LocalPlayer.Character.NullwareReanim.Torso.Position
  1483. else
  1484. if (game:GetService("Players").LocalPlayer:GetMouse().Target ~= nil) then
  1485. bp.Position = game:GetService("Players").LocalPlayer:GetMouse().Hit.p
  1486. end
  1487. end
  1488. end
  1489. end)
  1490. function KeyDown(Key)
  1491. KEYHOLD = true
  1492. if Key == "q" and ATTACK == false then
  1493. swshotg()
  1494. end
  1495.  
  1496. if Key == "e" and ATTACK == false then
  1497. print("removed xd")
  1498. end
  1499.  
  1500. if Key == "z" and ATTACK == false and shotgunact == false and gunact == false then
  1501. magic1()
  1502. end
  1503.  
  1504. if Key == "x" and ATTACK == false and shotgunact == false and gunact == false then
  1505. magic2()
  1506. end
  1507.  
  1508. if Key == "c" and ATTACK == false and shotgunact == false and gunact == false then
  1509. magic3()
  1510. end
  1511.  
  1512. if Key == "t" and ATTACK == false then
  1513. tuant()
  1514. end
  1515.  
  1516. if Key == "m" then
  1517. cs()
  1518. end
  1519.  
  1520. if Key == "]" and ATTACK == false then
  1521. if sick.Parent ~= Character then
  1522. sick = IT("Sound",Torso)
  1523. sick.SoundId = "rbxassetid://"..SONG
  1524. end
  1525. end
  1526. end
  1527.  
  1528. function KeyUp(Key)
  1529. KEYHOLD = false
  1530. end
  1531.  
  1532. Mouse.Button1Down:connect(function(NEWKEY)
  1533. MouseDown(NEWKEY)
  1534. end)
  1535. Mouse.Button1Up:connect(function(NEWKEY)
  1536. MouseUp(NEWKEY)
  1537. end)
  1538. Mouse.KeyDown:connect(function(NEWKEY)
  1539. KeyDown(NEWKEY)
  1540. end)
  1541. Mouse.KeyUp:connect(function(NEWKEY)
  1542. KeyUp(NEWKEY)
  1543. end)
  1544.  
  1545. function unanchor()
  1546. for _, c in pairs(Character:GetChildren()) do
  1547. if c:IsA("BasePart") and c ~= RootPart then
  1548. c.Anchored = false
  1549. end
  1550. end
  1551. if UNANCHOR == true then
  1552. RootPart.Anchored = false
  1553. else
  1554. RootPart.Anchored = true
  1555. end
  1556. end
  1557.  
  1558. --if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
  1559.  
  1560.  
  1561. --loop stuff
  1562.  
  1563. Humanoid.Changed:connect(function(Jump)
  1564. if Jump == "Jump" and (Disable_Jump == true) then
  1565. Humanoid.Jump = false
  1566. end
  1567. end)
  1568.  
  1569. while true do
  1570. Swait()
  1571. script.Parent = WEAPONGUI
  1572. ANIMATE.Parent = nil
  1573. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1574. v:Stop();
  1575. end
  1576. SINE = SINE + CHANGE*2
  1577. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1578. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1579. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4+Humanoid.HipHeight, Character)
  1580. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  1581. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1582. ANIM = "Jump"
  1583. if ATTACK == false then
  1584. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1585. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1586. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1587. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1588. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1589. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1590. end
  1591. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1592. ANIM = "Fall"
  1593. if ATTACK == false then
  1594. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1595. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1596. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1597. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1598. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1599. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1600. end
  1601. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1602. ANIM = "Idle"
  1603. if ATTACK == false then
  1604. local Alpha = .1
  1605. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1606. if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(0.2 + 5 * COS(SINE/35)),RAD(-84.8 + 2 * SIN(SINE/35)),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(-12.2 + 5 * COS(SINE/35)),RAD(-73.3 + 2 * SIN(SINE/35)),RAD(-4.7)),.1);end
  1607. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5 + 0.07 * SIN(SINE/35),0)*ANGLES(RAD(-11.3 + 5 * COS(SINE/35)),RAD(74.8 - 2 * SIN(SINE/35)),RAD(2.7)),Alpha)
  1608. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7 - 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1609. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2 - 4 * COS(SINE/35)),RAD(-86.3),RAD(0)),Alpha)
  1610. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7 - 4 * COS(SINE/35)),RAD(84.7),RAD(0)),Alpha)
  1611. end
  1612. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1613. ANIM = "Walk"
  1614. if ATTACK == false then
  1615. local Alpha = .1
  1616. RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-149.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1617. if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(0.2 + 5 * COS(SINE/35)),RAD(-84.8 + 2 * SIN(SINE/35)),RAD(-167.4)),Alpha)
  1618. else
  1619. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(-12.2 + 5 * COS(SINE/35)),RAD(-73.3 + 2 * SIN(SINE/35)),RAD(-4.7)),.1)
  1620. end
  1621. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5 + 0.07 * SIN(SINE/35),0)*ANGLES(RAD(-11.3 + 5 * COS(SINE/35)),RAD(74.8 - 2 * SIN(SINE/35)),RAD(2.7)),Alpha)
  1622. Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-30.7 - 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
  1623. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2 - 4 * COS(SINE/35)),RAD(-86.3),RAD(0)),Alpha)
  1624. RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7 - 4 * COS(SINE/35)),RAD(84.7),RAD(0)),Alpha)
  1625. end
  1626. end
  1627. if shotgunact == false then
  1628. shotgun.Parent = nil
  1629. fshot.Parent = Character
  1630. else
  1631. shotgun.Parent = Character
  1632. fshot.Parent = nil
  1633. end
  1634.  
  1635. if gunact == false then
  1636. gun.Parent = nil
  1637. fgun.Parent = Character
  1638. else
  1639. gun.Parent = Character
  1640. fgun.Parent = nil
  1641. end
  1642. if ATTACK == false then
  1643. sgw.C1 = sgw.C1:lerp(CF(0,0,0),.1)
  1644. gunw.C1 = gunw.C1:lerp(CF(0,0,0),.1)
  1645. end
  1646.  
  1647. local CFRAME2 = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(0)) * CF(0, MRANDOM(2,6), MRANDOM(6,10))
  1648. local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(3,6),-.6,0).p
  1649. local SPHEREFLOOR,SPHEREPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -5, 0))).lookVector, 25, Character)
  1650. if MRANDOM(1,15) == 1 then
  1651. WACKYEFFECT2({Time = MRANDOM(50,90), EffectType = "Sphere", Size = VT(.7,.7,.7), Size2 = VT(0,.7,0), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHEREPOS-VT(0,0,0))*ANGLES(RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0))), MoveToPos = SPHEREPOS+VT(0,MRANDOM(15,25)/1.2,0), MRANDOM(-25,25)/12, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0),SoundID = nil, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1652. end
  1653.  
  1654.  
  1655. unanchor()
  1656. Humanoid.MaxHealth = 1e4
  1657. Humanoid.Health = 1e4
  1658. if Rooted == false then
  1659. Disable_Jump = false
  1660. Humanoid.WalkSpeed = Speed
  1661. elseif Rooted == true then
  1662. Disable_Jump = true
  1663. Humanoid.WalkSpeed = 0
  1664. end
  1665. sick.SoundId = "rbxassetid://"..SONG
  1666. sick.Looped = true
  1667. if SONG == 383141805 then
  1668. sick.Pitch = .88
  1669. else
  1670. sick.Pitch = 1
  1671. end
  1672. sick.Volume = 3
  1673. sick.Playing = true
  1674. end
  1675.  
  1676. --//=================================\\
  1677. --\\=================================//
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683. --//====================================================\\--
  1684. --|| END OF SCRIPT
  1685. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment