Qpwisnd

fucking skid

Jul 22nd, 2022 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.46 KB | None | 0 0
  1. local Plate=Instance.new("Part")
  2. Plate.CFrame=CFrame.new(0,150,50)
  3. Plate.Anchored=true
  4. Plate.Parent=workspace
  5. Plate.Name="Plate"
  6. Plate.Size=Vector3.new(100,1,100)
  7. local PlateDestroying=false
  8. local Old_Player_Location=game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  9. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame=Plate.CFrame + (Plate.CFrame.UpVector*3.5)
  10.  
  11. game.Players:Chat('-gh 4623059912,16630147,7097435652')
  12. repeat task.wait()
  13. until game:GetService("Players").LocalPlayer.Character:FindFirstChild("Starslayer Railgun")
  14.  
  15. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  16. if v:IsA("BasePart") and v.Name~="HumanoidRootPart" then
  17. game:GetService("RunService").Heartbeat:connect(function()
  18. v.Velocity=Vector3.new(31,0,0)
  19. end)
  20. end
  21. end
  22. mode=1
  23. Bypass="death"
  24. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  25. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  26. if v:IsA("BasePart") and v.Name~="HumanoidRootPart" then
  27. game:GetService("RunService").Heartbeat:connect(function()
  28. v.Velocity=Vector3.new(0,30,0)
  29. wait(0.5)
  30. end)
  31. end
  32. end
  33. local p=game.Players.LocalPlayer
  34. local LocalPlayer=p
  35. local char=p.Character
  36. local name=char.Name
  37. local mouse=p:GetMouse()
  38. local Mouse=p:GetMouse()
  39. local currenttarget=nil
  40. local larm=char["Left Arm"]
  41. local rarm=char["Right Arm"]
  42. local lleg=char["Left Leg"]
  43. local rleg=char["Right Leg"]
  44. local hed=char.Head
  45. local torso=char.Torso
  46. local hum=char.Humanoid
  47. local walkspeed = 50 local CCF=nil
  48. local cam=game.Workspace.CurrentCamera
  49. local root=char.HumanoidRootPart
  50. local RootPart=root
  51. for i,v in pairs (char:GetChildren()) do
  52. if v:IsA("Accessory") then
  53. v.Handle.Massless=true
  54. v.Handle.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  55. end
  56. end
  57. hed.Massless=true
  58. hed.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  59. torso.Massless=true
  60. torso.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  61. rarm.Massless=true
  62. rarm.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  63. larm.Massless=true
  64. larm.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  65. lleg.Massless=true
  66. lleg.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  67. rleg.Massless=true
  68. rleg.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  69. root.Massless=true
  70. root.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  71. Bypass="Death"
  72. plr=game.Players.LocalPlayer
  73. dead=false
  74. char=plr.Character
  75.  
  76. PlateDestroying=true
  77. Plate:Destroy()
  78.  
  79.  
  80.  
  81. local Flinger=Instance.new("BodyAngularVelocity",RootPart)
  82. Flinger.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  83. Flinger.P=1000000000000000000000000000
  84. Flinger.AngularVelocity=Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  85.  
  86.  
  87. Positioner=Instance.new("BodyPosition",RootPart)
  88.  
  89. local Fling_Target="None"
  90.  
  91.  
  92.  
  93. game:GetService("RunService").Heartbeat:Connect(function()
  94. root.Velocity=Vector3.new(0,26,0)
  95. end)
  96.  
  97. for _,v in pairs(char:GetChildren()) do
  98. if v:IsA("Accessory") then
  99. local acc = v
  100. game:GetService("RunService").Heartbeat:Connect(function()
  101. for _,p in pairs(v:GetChildren()) do
  102. if p:IsA("Part") then
  103. p.Velocity=Vector3.new(0,26,0)
  104. end
  105. end
  106. end)
  107. end
  108. end
  109.  
  110.  
  111. wait(1/60)
  112.  
  113. Player=game.Players.LocalPlayer
  114. Character=workspace.non
  115. PlayerGui=Player.PlayerGui
  116. Cam=workspace.CurrentCamera
  117. Backpack=Player.Backpack
  118. Character=workspace.non
  119. Humanoid_=Character.Humanoid
  120. Mouse=Player:GetMouse()
  121. RootPart=Character["HumanoidRootPart"]
  122. Torso=Character["Torso"]
  123. Head=Character["Head"]
  124. RightArm=Character["Right Arm"]
  125. LeftArm=Character["Left Arm"]
  126. RightLeg=Character["Right Leg"]
  127. LeftLeg=Character["Left Leg"]
  128. RootJoint=RootPart["RootJoint"]
  129. Neck=Torso["Neck"]
  130. RightShoulder=Torso["Right Shoulder"]
  131. LeftShoulder=Torso["Left Shoulder"]
  132. RightHip=Torso["Right Hip"]
  133. LeftHip=Torso["Left Hip"]
  134. local GUN=char["Starslayer Railgun"].Handle
  135. local att1 = Instance.new("Attachment",char:FindFirstChild("Right Arm"))
  136. local att0 = Instance.new("Attachment",GUN)
  137. att0.Orientation = Vector3.new(140,90,-5)
  138. att0.Position = Vector3.new(-1.3,-.1,0)
  139. ap = Instance.new("AlignPosition",GUN)
  140. ap.Attachment0 = att0
  141. ap.Attachment1 = att1
  142. ap.Responsiveness = math.huge
  143. ap.MaxForce = math.huge
  144. ap.RigidityEnabled = true
  145. ao = Instance.new("AlignOrientation",GUN)
  146. ao.Attachment0 = att0
  147. ao.Attachment1 = att1
  148. ao.MaxTorque = math.huge
  149. ao.Responsiveness = math.huge
  150. ao.RigidityEnabled = true
  151. local joint = Instance.new("Part")
  152. joint.Name = "Joint"
  153. joint.Parent = GUN
  154. joint.BottomSurface = Enum.SurfaceType.Smooth
  155. joint.CFrame = RightArm.CFrame
  156. joint.CanCollide = false
  157. joint.Locked = true
  158. joint.Massless = true
  159. joint.Orientation = Vector3.new(-5.31, -4.84, 0.64)
  160. joint.Position = Vector3.new(-37.2, 3.05, 26.3)
  161. joint.Rotation = Vector3.new(-5.33, -4.82, 0.19)
  162. joint.Size = Vector3.new(1, 1, 1)
  163. joint.TopSurface = Enum.SurfaceType.Smooth
  164. joint.Transparency = 1
  165. local weld = Instance.new("Weld")
  166. weld.Name = "weld"
  167. weld.Part0 = RightArm
  168. weld.Part1 = joint
  169. weld.Parent = joint
  170.  
  171. local GunJoint = weld
  172.  
  173. IT=Instance.new
  174. CF=CFrame.new
  175. VT=Vector3.new
  176. RAD=math.rad
  177. C3=Color3.new
  178. UD2=UDim2.new
  179. BRICKC=BrickColor.new
  180. ANGLES=CFrame.Angles
  181. EULER=CFrame.fromEulerAnglesXYZ
  182. COS=math.cos
  183. ACOS=math.acos
  184. Cos=math.cos
  185. SIN=math.sin
  186. ASIN=math.asin
  187. ABS=math.abs
  188. MRANDOM=math.random
  189. FLOOR=math.floor
  190.  
  191. local rscp=CFrame.new(-.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  192. local lscp=CFrame.new(.5,0,0) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  193. local ROOTC0=CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  194. local NECKC0=CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  195. local RIGHTSHOULDERC0=CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  196. local LEFTSHOULDERC0=CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  197.  
  198. local MainPosition=CFrame.new(0,150,0)
  199. local sine = 0
  200.  
  201. local USERNAME = game:GetService("Players").LocalPlayer.Name
  202. local lplr = game:GetService("Players").LocalPlayer
  203. local stoppingeverything = false
  204. local alreadyfixing = false
  205. local soundfixing = false
  206.  
  207. game:GetService("RunService").Heartbeat:Connect(function()
  208. if not alreadyfixing then
  209. if Fling_Target=="None" and not alreadyfixing then
  210. root.Position=char.Torso.Position
  211. else
  212. root.Position=Fling_Target.Position
  213. end
  214. end
  215. end)
  216.  
  217. local MainFolder = Instance.new("Folder")
  218. MainFolder.Name = USERNAME.."'s Trollar/FE MLC.V3"
  219. MainFolder.Parent = game:GetService("ReplicatedStorage")
  220.  
  221. local songvolume = Instance.new("NumberValue")
  222. songvolume.Name = "SongVolume/FE MLC.V3"
  223. songvolume.Value = .45
  224. songvolume.Parent = MainFolder
  225.  
  226. local songpitch = Instance.new("NumberValue")
  227. songpitch.Name = "SongPitch/FE MLC.V3"
  228. songpitch.Value = 1
  229. songpitch.Parent = MainFolder
  230.  
  231. local songid = Instance.new("StringValue")
  232. songid.Name = "SongID/FE MLC.V3"
  233. songid.Value = "rbxassetid://9669449611"
  234. songid.Parent = MainFolder
  235.  
  236. local AnimSync = Instance.new("NumberValue")
  237. AnimSync.Name = "AnimSync"
  238. AnimSync.Value = 0
  239. AnimSync.Parent = MainFolder
  240.  
  241. local tauntvalue = Instance.new("StringValue")
  242. tauntvalue.Name = "TauntRemote/FE MLC.V3"
  243. tauntvalue.Parent = MainFolder
  244.  
  245. local Effects = Instance.new("Folder")
  246. Effects.Name = USERNAME.."'s Trollar/FE MLC.V3"
  247. Effects.Parent = Character
  248.  
  249. local ParticlesPos1 = Instance.new("Attachment")
  250. ParticlesPos1.Name = "when"
  251. ParticlesPos1.WorldAxis = Vector3.new(-0.084, 0.0926, 0.992)
  252. ParticlesPos1.WorldCFrame = CFrame.new(-36.5620461, 3.92019939, 19.0710621, -0.0840298533, -0.00339343748, -0.996457458, 0.0926043689, 0.99563998, -0.0111998487, 0.992150903, -0.093217425, -0.0833492279)
  253. ParticlesPos1.WorldOrientation = Vector3.new(0.642, -94.8, 5.31)
  254. ParticlesPos1.WorldPosition = Vector3.new(-36.6, 3.92, 19.1)
  255. ParticlesPos1.WorldSecondaryAxis = Vector3.new(-0.00339, 0.996, -0.0932)
  256.  
  257. local wenas = Instance.new("ParticleEmitter")
  258. wenas.Name = "wenas"
  259. wenas.Enabled = false
  260. wenas.Lifetime = NumberRange.new(0.4)
  261. wenas.LightEmission = 1
  262. wenas.LightInfluence = 1
  263. wenas.Rate = math.huge
  264. wenas.RotSpeed = NumberRange.new(-200, 200)
  265. wenas.Rotation = NumberRange.new(-200, 200)
  266. wenas.Size = NumberSequence.new({
  267. NumberSequenceKeypoint.new(0, 2.19, 0.688),
  268. NumberSequenceKeypoint.new(1, 0),
  269. })
  270. wenas.Speed = NumberRange.new(15)
  271. wenas.SpreadAngle = Vector2.new(1e+04, 1e+04)
  272. wenas.Texture = "rbxassetid://391573206"
  273. wenas.Parent = ParticlesPos1
  274.  
  275. local ParticlesPos2 = Instance.new("Attachment")
  276. ParticlesPos2.Name = "hit"
  277. ParticlesPos2.Axis = Vector3.new(1, -5.54e-06, -3.49e-06)
  278. ParticlesPos2.CFrame = CFrame.new(-4.99996185, 2.67028809e-05, 2.28881836e-05, 1, 5.54328426e-06, 3.48687331e-06, -5.54327016e-06, 1, -4.04613274e-06, -3.48689582e-06, 4.04611319e-06, 1)
  279. ParticlesPos2.Orientation = Vector3.new(0.000232, 0.0002, -0.000318)
  280. ParticlesPos2.Position = Vector3.new(-5, 2.67e-05, 2.29e-05)
  281. ParticlesPos2.SecondaryAxis = Vector3.new(5.54e-06, 1, 4.05e-06)
  282. ParticlesPos2.WorldAxis = Vector3.new(-0.057, -0.639, 0.767)
  283. ParticlesPos2.WorldCFrame = CFrame.new(-36.6982498, 7.34700012, 20.2498245, -0.0569684952, -0.0617803037, -0.996462941, -0.638521552, 0.769522548, -0.0112053677, 0.767492771, 0.635624468, -0.0832865983)
  284. ParticlesPos2.WorldOrientation = Vector3.new(0.642, -94.8, -39.7)
  285. ParticlesPos2.WorldPosition = Vector3.new(-36.7, 7.35, 20.2)
  286. ParticlesPos2.WorldSecondaryAxis = Vector3.new(-0.0618, 0.77, 0.636)
  287.  
  288. local wenas2 = Instance.new("ParticleEmitter")
  289. wenas2.Name = "wenas"
  290. wenas2.Enabled = false
  291. wenas2.Lifetime = NumberRange.new(0.4)
  292. wenas2.LightEmission = 1
  293. wenas2.LightInfluence = 1
  294. wenas2.Rate = math.huge
  295. wenas2.RotSpeed = NumberRange.new(-200, 200)
  296. wenas2.Rotation = NumberRange.new(-200, 200)
  297. wenas2.Size = NumberSequence.new({
  298. NumberSequenceKeypoint.new(0, 3.12, 0.688),
  299. NumberSequenceKeypoint.new(1, 0),
  300. })
  301. wenas2.Speed = NumberRange.new(15)
  302. wenas2.SpreadAngle = Vector2.new(1e+04, 1e+04)
  303. wenas2.Texture = "rbxassetid://391573206"
  304. wenas2.Parent = ParticlesPos2
  305.  
  306. Particles1 = ParticlesPos1.wenas
  307. Particles2 = ParticlesPos2.wenas
  308.  
  309. local beams = Instance.new("Folder")
  310. beams.Name = "beams"
  311. beams.Parent = GUN
  312.  
  313. local a = Instance.new("Folder")
  314. a.Name = "a"
  315.  
  316. local beam = Instance.new("Beam")
  317. beam.Name = "beam"
  318. beam.Attachment0 = ParticlesPos1
  319. beam.Attachment1 = ParticlesPos2
  320. beam.Enabled = false
  321. beam.LightEmission = 1
  322. beam.LightInfluence = 1
  323. beam.Texture = "rbxassetid://6091474388"
  324. beam.TextureSpeed = 500
  325. beam.Transparency = NumberSequence.new({
  326. NumberSequenceKeypoint.new(0, 0),
  327. NumberSequenceKeypoint.new(1, 0),
  328. })
  329. beam.Width0 = 3.3
  330. beam.Width1 = 3.3
  331. beam.Parent = a
  332.  
  333. local beam1 = Instance.new("Beam")
  334. beam1.Name = "beam1"
  335. beam1.Attachment0 = ParticlesPos1
  336. beam1.Attachment1 = ParticlesPos2
  337. beam1.Enabled = false
  338. beam1.LightEmission = 1
  339. beam1.LightInfluence = 1
  340. beam1.Texture = "rbxassetid://6091474388"
  341. beam1.TextureSpeed = 500
  342. beam1.Transparency = NumberSequence.new({
  343. NumberSequenceKeypoint.new(0, 0),
  344. NumberSequenceKeypoint.new(1, 0),
  345. })
  346. beam1.Width0 = 3.3
  347. beam1.Width1 = 3.3
  348. beam1.Parent = a
  349.  
  350. local beam2 = Instance.new("Beam")
  351. beam2.Name = "beam2"
  352. beam2.Attachment0 = ParticlesPos1
  353. beam2.Attachment1 = ParticlesPos2
  354. beam2.Enabled = false
  355. beam2.LightEmission = 1
  356. beam2.LightInfluence = 1
  357. beam2.Texture = "rbxassetid://6091474388"
  358. beam2.TextureSpeed = 500
  359. beam2.Transparency = NumberSequence.new({
  360. NumberSequenceKeypoint.new(0, 0),
  361. NumberSequenceKeypoint.new(1, 0),
  362. })
  363. beam2.Width0 = 3.3
  364. beam2.Width1 = 3.3
  365. beam2.Parent = a
  366.  
  367. local beam3 = Instance.new("Beam")
  368. beam3.Name = "beam3"
  369. beam3.Attachment0 = ParticlesPos1
  370. beam3.Attachment1 = ParticlesPos2
  371. beam3.Enabled = false
  372. beam3.LightEmission = 1
  373. beam3.LightInfluence = 1
  374. beam3.Texture = "rbxassetid://6091474388"
  375. beam3.TextureSpeed = 500
  376. beam3.Transparency = NumberSequence.new({
  377. NumberSequenceKeypoint.new(0, 0),
  378. NumberSequenceKeypoint.new(1, 0),
  379. })
  380. beam3.Width0 = 3.3
  381. beam3.Width1 = 3.3
  382. beam3.Parent = a
  383.  
  384. local beam4 = Instance.new("Beam")
  385. beam4.Name = "beam4"
  386. beam4.Attachment0 = ParticlesPos1
  387. beam4.Attachment1 = ParticlesPos2
  388. beam4.Enabled = false
  389. beam4.LightEmission = 1
  390. beam4.LightInfluence = 1
  391. beam4.Texture = "rbxassetid://6091474388"
  392. beam4.TextureSpeed = 500
  393. beam4.Transparency = NumberSequence.new({
  394. NumberSequenceKeypoint.new(0, 0),
  395. NumberSequenceKeypoint.new(1, 0),
  396. })
  397. beam4.Width0 = 3.3
  398. beam4.Width1 = 3.3
  399. beam4.Parent = a
  400.  
  401. local beam5 = Instance.new("Beam")
  402. beam5.Name = "beam5"
  403. beam5.Attachment0 = ParticlesPos1
  404. beam5.Attachment1 = ParticlesPos2
  405. beam5.Enabled = false
  406. beam5.LightEmission = 1
  407. beam5.LightInfluence = 1
  408. beam5.Texture = "rbxassetid://6091474388"
  409. beam5.TextureSpeed = 500
  410. beam5.Transparency = NumberSequence.new({
  411. NumberSequenceKeypoint.new(0, 0),
  412. NumberSequenceKeypoint.new(1, 0),
  413. })
  414. beam5.Width0 = 3.3
  415. beam5.Width1 = 3.3
  416. beam5.Parent = a
  417.  
  418. local beam6 = Instance.new("Beam")
  419. beam6.Name = "beam6"
  420. beam6.Attachment0 = ParticlesPos1
  421. beam6.Attachment1 = ParticlesPos2
  422. beam6.Enabled = false
  423. beam6.LightEmission = 1
  424. beam6.LightInfluence = 1
  425. beam6.Texture = "rbxassetid://6091474388"
  426. beam6.TextureSpeed = 500
  427. beam6.Transparency = NumberSequence.new({
  428. NumberSequenceKeypoint.new(0, 0),
  429. NumberSequenceKeypoint.new(1, 0),
  430. })
  431. beam6.Width0 = 3.3
  432. beam6.Width1 = 3.3
  433. beam6.Parent = a
  434.  
  435. local beam7 = Instance.new("Beam")
  436. beam7.Name = "beam7"
  437. beam7.Attachment0 = ParticlesPos1
  438. beam7.Attachment1 = ParticlesPos2
  439. beam7.Enabled = false
  440. beam7.LightEmission = 1
  441. beam7.LightInfluence = 1
  442. beam7.Texture = "rbxassetid://6091474388"
  443. beam7.TextureSpeed = 500
  444. beam7.Transparency = NumberSequence.new({
  445. NumberSequenceKeypoint.new(0, 0),
  446. NumberSequenceKeypoint.new(1, 0),
  447. })
  448. beam7.Width0 = 3.3
  449. beam7.Width1 = 3.3
  450. beam7.Parent = a
  451.  
  452. a.Parent = beams
  453.  
  454. local b = Instance.new("Folder")
  455. b.Name = "b"
  456.  
  457. local beam8 = Instance.new("Beam")
  458. beam8.Name = "beam8"
  459. beam8.Attachment0 = ParticlesPos1
  460. beam8.Attachment1 = ParticlesPos2
  461. beam8.Enabled = false
  462. beam8.FaceCamera = true
  463. beam8.LightEmission = 1
  464. beam8.LightInfluence = 1
  465. beam8.Texture = "rbxassetid://4595131819"
  466. beam8.TextureSpeed = 0
  467. beam8.Transparency = NumberSequence.new({
  468. NumberSequenceKeypoint.new(0, 0),
  469. NumberSequenceKeypoint.new(1, 0),
  470. })
  471. beam8.Width0 = 3
  472. beam8.Width1 = 3
  473. beam8.Parent = b
  474.  
  475. b.Parent = beams
  476. local Beams = beams
  477. local BeamIdk = Beams.a
  478. local Beam = beam
  479.  
  480. local Sound=Instance.new("Sound",workspace)
  481. Sound.SoundId=songid.Value
  482. Sound.Volume=songvolume.Value
  483. Sound.Pitch=songpitch.Value
  484. Sound.Looped=true
  485. Sound:Play()
  486.  
  487. game:GetService("ReplicatedStorage").DescendantRemoving:Connect(function(v_)
  488. if v_ == MainFolder and not stoppingeverything then
  489. stoppingeverything = true
  490. MainFolder = Instance.new("Folder")
  491. MainFolder.Name = USERNAME.."'s Trollar/FE MLC.V3"
  492. MainFolder.Parent = game:GetService("ReplicatedStorage")
  493. stoppingeverything = false
  494. end
  495. end)
  496.  
  497. MainFolder.DescendantRemoving:Connect(function(v_)
  498. if v_ == songvolume and not stoppingeverything then
  499. stoppingeverything = true
  500. songvolume = Instance.new("NumberValue")
  501. songvolume.Name = "SongVolume/FE MLC.V3"
  502. songvolume.Value = .45
  503. songvolume.Parent = MainFolder
  504. stoppingeverything = false
  505. elseif v_ == songpitch and not stoppingeverything then
  506. stoppingeverything = true
  507. songpitch = Instance.new("NumberValue")
  508. songpitch.Name = "SongPitch/FE MLC.V3"
  509. songpitch.Value = 1
  510. songpitch.Parent = MainFolder
  511. stoppingeverything = false
  512. elseif v_ == songid and not stoppingeverything then
  513. songid = Instance.new("StringValue")
  514. songid.Name = "SongID/FE MLC.V3"
  515. songid.Value = "rbxassetid://6285410463"
  516. songid.Parent = MainFolder
  517. elseif v_ == tauntvalue and not stoppingeverything then
  518. tauntvalue = Instance.new("StringValue")
  519. tauntvalue.Name = "TauntRemote/FE MLC.V3"
  520. tauntvalue.Parent = MainFolder
  521. end
  522. end)
  523.  
  524. workspace.DescendantRemoving:Connect(function(v_)
  525. if v_ == Sound then
  526. Sound=Instance.new("Sound",workspace)
  527. Sound.SoundId=songid
  528. Sound.Volume=songvolume
  529. Sound.Pitch=songpitch
  530. Sound.Looped=true
  531. Sound:Play()
  532. end
  533. end)
  534.  
  535. local function randomstring()
  536. local length = math.random(10,20)
  537. local array = {}
  538. for i = 1,length do
  539. array[i] = string.char(math.random(32,126))
  540. end
  541. return table.concat(array)
  542. end
  543.  
  544. local MOVING,kh,kh2 = false,false,false
  545.  
  546. local Anim = "Idle"
  547. local attacktype = 1
  548. local delays = false
  549. local attack = false
  550. local play = true
  551. local Torsovelocity = (RootPart.Velocity * Vector3.new(1,0,1)).Magnitude
  552. AnimSync:GetPropertyChangedSignal("Value"):Connect(function()
  553. if stoppingeverything then wait(math.huge) end
  554. sine = AnimSync.Value
  555. end)
  556.  
  557. local doe = 0
  558. local rc0 = CFrame.new() * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
  559. local nc0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
  560. local rscp = CFrame.new(-.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  561. local lscp = CFrame.new(.5,0,0) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  562.  
  563. function QFCF(cf)
  564. local mx,my,mz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  565. local trace = m00 + m11 + m22
  566. if trace > 0 then
  567. local s = math.sqrt(1 + trace)
  568. local recip = .5/s
  569. return (m21 - m12) * recip,(m02 - m20) * recip,(m10 - m01) * recip,s * .5
  570. else
  571. local i = 0
  572. if m11 > m00 then
  573. i = 1
  574. end
  575. if m22 > (i == 0 and m00 or m11) then
  576. i = 2
  577. end
  578. if i == 0 then
  579. local s = math.sqrt(m00 - m11 - m22 + 1)
  580. local recip = .5/s
  581. return .5 * s,(m10 + m01) * recip,(m20 + m02) * recip,(m21 - m12) * recip
  582. elseif i == 1 then
  583. local s = math.sqrt(m11 - m22 - m00 + 1)
  584. local recip = .5/s
  585. return (m01 + m10) * recip,.5 * s,(m21 + m12) * recip,(m02 - m20) * recip
  586. elseif i == 2 then
  587. local s = math.sqrt(m22 - m00 - m11 + 1)
  588. local recip = .5/s return (m02 + m20) * recip,(m12 + m21) * recip,.5 * s,(m10 - m01) * recip
  589. end
  590. end
  591. end
  592.  
  593. Frame_Speed = 1 / 60
  594.  
  595. ArtificialHB = Instance.new("BindableEvent")
  596. ArtificialHB.Name = randomstring()
  597. ArtificialHB.Parent = script
  598. frame = Frame_Speed
  599. tf = 0
  600. allowframeloss = false
  601. tossremainder = false
  602. lastframe = tick()
  603. ArtificialHB:Fire()
  604.  
  605. game:GetService("RunService").Heartbeat:connect(function(s, p)
  606. if stoppingeverything then wait(math.huge) end
  607. tf = tf + s
  608. if tf >= frame then
  609. if allowframeloss then
  610. ArtificialHB:Fire()
  611. lastframe = tick()
  612. else
  613. for i = 1, math.floor(tf / frame) do
  614. if not stoppingeverything then
  615. ArtificialHB:Fire()
  616. end
  617. end
  618. lastframe = tick()
  619. end
  620. if tossremainder then
  621. tf = 0
  622. else
  623. tf = tf - frame * math.floor(tf / frame)
  624. end
  625. end
  626. end)
  627.  
  628. function Swait(NUMBER)
  629. if stoppingeverything then wait(math.huge) end
  630. if NUMBER == 0 or NUMBER == nil then
  631. ArtificialHB.Event:wait()
  632. else
  633. for i = 1, NUMBER do
  634. if not stoppingeverything then
  635. ArtificialHB.Event:wait()
  636. end
  637. end
  638. end
  639. end
  640.  
  641. function QTCF(px,py,pz,x,y,z,w)
  642. local xs,ys,zs = x + x,y + y,z + z
  643. local wx,wy,wz = w * xs,w * ys,w * zs
  644. local xx = x * xs
  645. local xy = x * ys
  646. local xz = x * zs
  647. local yy = y * ys
  648. local yz = y * zs
  649. local zz = z * zs
  650. return CFrame.new(px,py,pz,1 - (yy + zz),xy - wz,xz + wy,xy + wz,1 - (xx + zz),yz - wx,xz - wy,yz + wx,1 - (xx + yy))
  651. end
  652.  
  653. function QS(a,b,t)
  654. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  655. local startInterp,finishInterp;
  656. if cosTheta >= .0001 then
  657. if (1 - cosTheta) > .0001 then
  658. local theta = math.acos(cosTheta)
  659. local invSinTheta = 1/math.sin(theta)
  660. startInterp = math.sin((1 - t) * theta) * invSinTheta
  661. finishInterp = math.sin(t * theta) * invSinTheta
  662. else
  663. startInterp = 1 - t
  664. finishInterp = t
  665. end
  666. else
  667. if (1 + cosTheta) > .0001 then
  668. local theta = math.acos(-cosTheta)
  669. local invSinTheta = 1/math.sin(theta)
  670. startInterp = math.sin((t - 1) * theta) * invSinTheta
  671. finishInterp = math.sin(t * theta) * invSinTheta
  672. else
  673. startInterp = t - 1
  674. finishInterp = t
  675. end
  676. end
  677. return a[1] * startInterp + b[1] * finishInterp,a[2] * startInterp + b[2] * finishInterp,a[3] * startInterp + b[3] * finishInterp,a[4] * startInterp + b[4] * finishInterp
  678. end
  679.  
  680. function Clerp(a,b,t)
  681. local qa = {QFCF(a)}
  682. local qb = {QFCF(b)}
  683. local ax,ay,az = a.x,a.y,a.z
  684. local bx,by,bz = b.x,b.y,b.z
  685. local _t = 1 - t
  686. return QTCF(_t * ax + t * bx,_t * ay + t * by,_t * az + t * bz,QS(qa,qb,t))
  687. end
  688.  
  689. --[[ArtificialHB = Instance.new("BindableEvent",script)
  690. ArtificialHB.Name = "Heartbeat"
  691.  
  692. script:WaitForChild("Heartbeat")
  693.  
  694. frame = 10
  695. tf = 0
  696. allowframeloss = false
  697. tossremainder = false
  698. lastframe = tick()
  699. script.Heartbeat:Fire()
  700.  
  701. game:GetService("RunService").Heartbeat:Connect(function(s,p)
  702. if stoppingeverything then wait(math.huge) end
  703. tf = tf + s
  704. if tf >= frame then
  705. if allowframeloss then
  706. script.Heartbeat:Fire()
  707. lastframe = tick()
  708. else
  709. for i = 1,math.floor(tf/frame) do
  710. if stoppingeverything ~= true then
  711. script.Heartbeat:Fire()
  712. end
  713. end
  714. lastframe = tick()
  715. end
  716. if tossremainder then
  717. tf = 0
  718. else
  719. tf = tf - frame * math.floor(tf/frame)
  720. end
  721. end
  722. end)]]--
  723.  
  724. function CreateConnection(TYPE,PARENT,PART0,PART1,C0,C1)
  725. if stoppingeverything then wait(math.huge) end
  726. local NEWWELD = Instance.new(TYPE)
  727. NEWWELD.Part0 = PART0
  728. NEWWELD.Part1 = PART1
  729. NEWWELD.C0 = C0
  730. NEWWELD.C1 = C1
  731. NEWWELD.Parent = PARENT
  732. return NEWWELD
  733. end
  734.  
  735. function CreateMesh(MESH,PARENT,MESHTYPE,MESHID,TEXTUREID,SCALE,OFFSET)
  736. local NEWMESH = Instance.new(MESH)
  737. if MESH == "SpecialMesh" then
  738. NEWMESH.MeshType = MESHTYPE
  739. if MESHID ~= "nil" and MESHID ~= "" and tonumber(MESHID) ~= nil then
  740. NEWMESH.MeshId = "rbxassetid://"..MESHID
  741. elseif MESHID ~= "nil" and MESHID ~= "" then
  742. NEWMESH.MeshId = MESHID
  743. end
  744. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  745. NEWMESH.TextureId = "rbxassetid://"..TEXTUREID
  746. end
  747. end
  748. NEWMESH.Offset = OFFSET or Vector3.new()
  749. NEWMESH.Scale = SCALE
  750. NEWMESH.Parent = PARENT
  751. return NEWMESH
  752. end
  753.  
  754. function CreatePart(FORMFACTOR,PARENT,MATERIAL,REFLECTANCE,TRANSPARENCY,BRICKCOLOR,NAME,SIZE,ANCHOR)
  755. local NEWPART = Instance.new("Part")
  756. NEWPART.Massless = true
  757. NEWPART.formFactor = FORMFACTOR
  758. NEWPART.Reflectance = REFLECTANCE
  759. NEWPART.Transparency = TRANSPARENCY
  760. NEWPART.CanCollide = false
  761. NEWPART.Locked = true
  762. NEWPART.Anchored = true
  763. if ANCHOR == false then
  764. NEWPART.Anchored = false
  765. end
  766. NEWPART.Color = BRICKCOLOR
  767. NEWPART.Name = randomstring()
  768. NEWPART.Size = SIZE
  769. NEWPART.Position = Torso.Position
  770. NEWPART.Material = MATERIAL
  771. NEWPART:BreakJoints()
  772. NEWPART.Parent = PARENT
  773. return NEWPART
  774. end
  775.  
  776. function CreatePartWithEffect(FORMFACTOR,PARENT,MATERIAL,REFLECTANCE,TRANSPARENCY,BRICKCOLOR,NAME,SIZE,ANCHOR)
  777. local NEWPART = Instance.new("Part")
  778. local PARTICLES = script.Effecto:Clone()
  779. NEWPART.Massless = true
  780. NEWPART.formFactor = FORMFACTOR
  781. NEWPART.Reflectance = REFLECTANCE
  782. NEWPART.Transparency = TRANSPARENCY
  783. NEWPART.CanCollide = false
  784. NEWPART.Locked = true
  785. NEWPART.Anchored = true
  786. if ANCHOR == false then
  787. NEWPART.Anchored = false
  788. end
  789. NEWPART.Color = BRICKCOLOR
  790. NEWPART.Name = randomstring()
  791. NEWPART.Size = SIZE
  792. NEWPART.Position = Torso.Position
  793. NEWPART.Material = MATERIAL
  794. NEWPART:BreakJoints()
  795. NEWPART.Parent = PARENT
  796. PARTICLES.Color = ColorSequence.new(NEWPART.Color)
  797. PARTICLES.Parent = NEWPART
  798. PARTICLES.Enabled = true
  799. return NEWPART
  800. end
  801.  
  802. local S = Instance.new("Sound")
  803. function CreateSound(ID,PARENT,VOLUME,PITCH,DOESLOOP)
  804. local NEWSOUND = nil
  805. coroutine.resume(coroutine.create(function()
  806. NEWSOUND = S:Clone()
  807. NEWSOUND.Parent = PARENT
  808. NEWSOUND.Volume = VOLUME
  809. NEWSOUND.Pitch = PITCH
  810. NEWSOUND.SoundId = "rbxassetid://"..ID
  811. NEWSOUND:play()
  812. if DOESLOOP == true then
  813. NEWSOUND.Looped = true
  814. else
  815. coroutine.resume(coroutine.create(function()
  816. pcall(function()
  817. repeat if stoppingeverything then wait(math.huge) end Swait() until NEWSOUND.Playing == false
  818. NEWSOUND:Destroy()
  819. end)
  820. end))
  821. end
  822. end))
  823. return NEWSOUND
  824. end
  825.  
  826. local function weldBetween(a,b)
  827. local weldd = Instance.new("Weld")
  828. weldd.Part0 = a
  829. weldd.Part1 = b
  830. weldd.C1 = b.CFrame:inverse() * a.CFrame
  831. weldd.Parent = b
  832. return weldd
  833. end
  834. function rayCast(Position,Direction,Range,Ignore)
  835. return workspace:FindPartOnRay(Ray.new(Position,Direction.unit * (Range or 999.999)),Ignore)
  836. end
  837. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  838. return workspace:FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  839. end
  840.  
  841. function chatfunc(textt,glitchy)
  842. if not stoppingeverything then
  843. local text = string.gsub(string.gsub(textt,"​",""),"%c","")
  844. if string.lower(text) == "/e g/r" then
  845. stoppingeverything = true
  846. Humanoid_.Health = 0
  847. local e = false
  848. for _,v in pairs(game:GetService("ReplicatedStorage"):GetChildren()) do
  849. if v.Name:match("/FE MLC.V3") then
  850. game:GetService("Debris"):AddItem(v)
  851. end
  852. end
  853. task.spawn(function()
  854. lplr.CharacterAdded:Wait()
  855. e = true
  856. end)
  857. repeat task.wait()
  858. for _,v in pairs(char:GetChildren()) do
  859. if v:IsA("Part") then
  860. v.CFrame = MainPosition
  861. end
  862. end
  863. until e
  864. game:GetService("Debris"):AddItem(Sound)
  865. return
  866. end
  867. if string.sub(text,1,3) == "/e " or string.sub(text,1,3) == "/w " or string.sub(text,1,3) == "/c " then
  868. return
  869. end
  870. local chat = coroutine.wrap(function()
  871. local sayingstuff = Instance.new("BillboardGui",workspace.Terrain)
  872. sayingstuff.Name = randomstring()
  873. sayingstuff.Size = UDim2.new(0,9999,2,0)
  874. sayingstuff.StudsOffset = Vector3.new(0,2,0)
  875. sayingstuff.Adornee = Head
  876. local sayingstuff3 = Instance.new("TextLabel",sayingstuff)
  877. sayingstuff3.BackgroundTransparency = 1
  878. sayingstuff3.BorderSizePixel = 0
  879. sayingstuff3.Text = ""
  880. sayingstuff3.Font = Enum.Font:GetEnumItems()[math.random(1,#Enum.Font:GetEnumItems())]
  881. sayingstuff3.TextScaled = false
  882. sayingstuff3.TextSize = 50
  883. sayingstuff3.TextStrokeTransparency = 0
  884. coroutine.resume(coroutine.create(function()
  885. while stoppingeverything ~= true and sayingstuff3:IsDescendantOf(game) do
  886. sayingstuff3.TextColor3 = GUN.NeonParts.Color
  887. sayingstuff3.Rotation = math.random(-50,50)*.08
  888. sayingstuff3.Font = Enum.Font:GetEnumItems()[math.random(1,#Enum.Font:GetEnumItems())]
  889. Swait()
  890. end
  891. end))
  892. sayingstuff3.TextStrokeColor3 = GUN.Color
  893. sayingstuff3.Size = UDim2.new(1,0,1,0)
  894. for i = 1,string.len(text) do
  895. Swait(5)
  896. local SPos = Instance.new("Part",workspace.Terrain)
  897. SPos.CanCollide = false
  898. SPos.Size = Vector3.new(0.5,0.5,0.5)
  899. SPos.Transparency = 1
  900. SPos.Anchored = true
  901. SPos.Position = Head.Position
  902. local TSound = Instance.new("Sound",SPos)
  903. TSound.SoundId = "rbxassetid://704085554"
  904. TSound.Volume = 1
  905. TSound.PlayOnRemove = true
  906. game:GetService("Debris"):AddItem(SPos,0.01)
  907. sayingstuff3.Text = string.sub(text,1,i)
  908. end
  909. Swait(120)
  910. game:GetService("TweenService"):Create(sayingstuff3,TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,3.5),{TextSize = 0}):Play()
  911. game:GetService("Debris"):AddItem(sayingstuff,4.5)
  912. end)
  913. chat()
  914. end
  915. end
  916. lplr.Chatted:Connect(function(m)
  917. if not stoppingeverything then
  918. chatfunc(m)
  919. end
  920. end)
  921.  
  922. local Parts,Tools,Models = {},{},{}
  923.  
  924. function mdmg(Position,Range)
  925. task.spawn(function()
  926. for _,v in pairs(workspace:GetChildren()) do
  927. if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("Tool") or v:FindFirstChild("Head") then
  928. if v:IsA("Tool") then
  929. local Handle = v:FindFirstChild("Handle")
  930. if Handle and Handle.CanCollide == true and Handle.Anchored == false and (Handle.Position - Position).Magnitude < Range then
  931. repeat game:GetService("RunService").RenderStepped:Wait() until Fling_Target == "None"
  932. Fling_Target = Handle
  933. local c = Fling_Target:Clone()
  934. c.Parent = Effects
  935. c.Name = "Bruh...."..randomstring()
  936. c.CanCollide = false
  937. c.Material = "Neon"
  938. c.Color = Color3.new(1,1,1)
  939. c.Parent = Effects
  940. game:GetService("TweenService"):Create(c,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,true),{Size = Vector3.new(0,0,0),CFrame = c.CFrame*CFrame.new((math.random(-2,2))*5,(math.random(2,3))*5,(math.random(-2,2))*5)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Transparency = 1,Color = Color3.new(1,1,1)}):Play()
  941. game:GetService("Debris"):AddItem(c,.5)
  942. delay(.5,function()
  943. Fling_Target = "None"
  944. end)
  945. end
  946. elseif v:FindFirstChild("Head") then
  947. local HumanoidRootPart = v:FindFirstChild("Head")
  948. if HumanoidRootPart and HumanoidRootPart.CanCollide == true and HumanoidRootPart.Anchored == false and (HumanoidRootPart.Position - Position).Magnitude < Range then
  949. repeat game:GetService("RunService").RenderStepped:Wait() until Fling_Target == "None"
  950. Fling_Target = HumanoidRootPart
  951. for _,part in pairs(v:GetDescendants()) do
  952. if part:IsA("Part") then
  953. local c = part:Clone()
  954. c.Parent = Effects
  955. c.Name = "Bruh...."..randomstring()
  956. c.CanCollide = false
  957. c.Material = "Neon"
  958. c.Color = Color3.new(1,1,1)
  959. c.Parent = Effects
  960. game:GetService("TweenService"):Create(c,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,true),{Size = Vector3.new(0,0,0),CFrame = c.CFrame*CFrame.new((math.random(-2,2))*5,(math.random(2,3))*5,(math.random(-2,2))*5)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Transparency = 1,Color = Color3.new(1,1,1)}):Play()
  961. game:GetService("Debris"):AddItem(c,.5)
  962. end
  963. end
  964. delay(.5,function()
  965. Fling_Target = "None"
  966. end)
  967. end
  968. elseif v:IsA("Part") or v:IsA("MeshPart") then
  969. if v.CanCollide == true and v.Anchored == false and (v.Position - Position).Magnitude < Range then
  970.  
  971. repeat game:GetService("RunService").RenderStepped:Wait() until Fling_Target == "None"
  972. Fling_Target = v
  973. local c = Fling_Target:Clone()
  974. c.Parent = Effects
  975. c.Name = "Bruh...."..randomstring()
  976. c.CanCollide = false
  977. c.Material = "Neon"
  978. c.Color = Color3.new(1,1,1)
  979. c.Parent = Effects
  980. game:GetService("TweenService"):Create(c,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,true),{Size = Vector3.new(0,0,0),CFrame = c.CFrame*CFrame.new((math.random(-2,2))*5,(math.random(2,3))*5,(math.random(-2,2))*5)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Transparency = 1,Color = Color3.new(1,1,1)}):Play()
  981. game:GetService("Debris"):AddItem(c,.5)
  982. delay(.5,function()
  983. Fling_Target = "None"
  984. end)
  985. end
  986. end
  987. end
  988. end
  989. end)
  990. end
  991.  
  992. function Effect(Table)
  993. local TYPE = (Table.EffectType or "Sphere")
  994. local SIZE = (Table.Size or Vector3.new(1,1,1))
  995. local ENDSIZE = (Table.Size2 or Vector3.new())
  996. local TRANSPARENCY = (Table.Transparency or 0)
  997. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  998. local CFRAME = (Table.CFrame or Torso.CFrame)
  999. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1000. local ROTATION1 = (Table.RotationX or 0)
  1001. local ROTATION2 = (Table.RotationY or 0)
  1002. local ROTATION3 = (Table.RotationZ or 0)
  1003. local MATERIAL = (Table.Material or "Neon")
  1004. local COLOR = (Table.Color or GUN.Color)
  1005. local RAINBOWPART = true
  1006. local TIME = (Table.Time or 45)
  1007. local SOUNDID = (Table.SoundID or nil)
  1008. local SOUNDPITCH = (Table.SoundPitch or nil)
  1009. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1010. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  1011. local BOOMERANG = (Table.Boomerang or 0)
  1012. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  1013. coroutine.resume(coroutine.create(function()
  1014. local PLAYSSOUND = false
  1015. local SOUND = nil
  1016. local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,GUN.Color,"Effect",Vector3.new(1,1,1),true)
  1017. if RAINBOWPART then
  1018. coroutine.resume(coroutine.create(function()
  1019. while stoppingeverything ~= true and EFFECT:IsDescendantOf(game) do
  1020. EFFECT.Color = GUN.Color
  1021. Swait()
  1022. end
  1023. end))
  1024. end
  1025. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1026. PLAYSSOUND = true
  1027. SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false)
  1028. end
  1029. EFFECT.Color = COLOR
  1030. local MSH = nil
  1031. if TYPE == "Sphere" then
  1032. MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.new())
  1033. elseif TYPE == "Block" or TYPE == "Box" then
  1034. MSH = Instance.new("BlockMesh",EFFECT)
  1035. MSH.Scale = SIZE
  1036. elseif TYPE == "Wave" then
  1037. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8))
  1038. elseif TYPE == "Ring" then
  1039. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,.1),Vector3.new())
  1040. elseif TYPE == "Slash" then
  1041. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  1042. elseif TYPE == "Round Slash" then
  1043. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  1044. elseif TYPE == "Swirl" then
  1045. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","168892432","",SIZE,Vector3.new())
  1046. elseif TYPE == "Skull" then
  1047. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.new())
  1048. elseif TYPE == "Crystal" then
  1049. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.new())
  1050. end
  1051. if MSH ~= nil then
  1052. local BOOMR1 = 1+BOOMERANG/50
  1053. local BOOMR2 = 1+SIZEBOOMERANG/50
  1054. local MOVESPEED = nil
  1055. if MOVEDIRECTION ~= nil then
  1056. if USEBOOMERANGMATH == true then
  1057. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  1058. else
  1059. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  1060. end
  1061. end
  1062. local GROWTH = nil
  1063. if USEBOOMERANGMATH == true then
  1064. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  1065. else
  1066. GROWTH = (SIZE - ENDSIZE)
  1067. end
  1068. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1069. if TYPE == "Block" then
  1070. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1071. else
  1072. EFFECT.CFrame = CFRAME
  1073. end
  1074. if USEBOOMERANGMATH == true then
  1075. for LOOP = 1,TIME+1 do
  1076. Swait()
  1077. MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  1078. if TYPE == "Wave" then
  1079. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  1080. end
  1081. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1082. if TYPE == "Block" then
  1083. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1084. else
  1085. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1086. end
  1087. if MOVEDIRECTION ~= nil then
  1088. local ORI = EFFECT.Orientation
  1089. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  1090. EFFECT.Orientation = ORI
  1091. end
  1092. end
  1093. else
  1094. for LOOP = 1,TIME+1 do
  1095. Swait()
  1096. MSH.Scale = MSH.Scale - GROWTH/TIME
  1097. if TYPE == "Wave" then
  1098. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  1099. end
  1100. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1101. if TYPE == "Block" then
  1102. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1103. else
  1104. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1105. end
  1106. if MOVEDIRECTION ~= nil then
  1107. local ORI = EFFECT.Orientation
  1108. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
  1109. EFFECT.Orientation = ORI
  1110. end
  1111. end
  1112. end
  1113. EFFECT.Transparency = 1
  1114. if PLAYSSOUND == false then
  1115. EFFECT:Destroy()
  1116. else
  1117. repeat if stoppingeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1118. EFFECT:Destroy()
  1119. end
  1120. else
  1121. if PLAYSSOUND == false then
  1122. EFFECT:Destroy()
  1123. else
  1124. repeat if stoppingeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1125. EFFECT:Destroy()
  1126. end
  1127. end
  1128. end))
  1129. end
  1130.  
  1131. function Effect2(Table)
  1132. local TYPE = (Table.EffectType or "Sphere")
  1133. local SIZE = (Table.Size or Vector3.new(1,1,1))
  1134. local ENDSIZE = (Table.Size2 or Vector3.new())
  1135. local TRANSPARENCY = (Table.Transparency or 0)
  1136. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1137. local CFRAME = (Table.CFrame or Torso.CFrame)
  1138. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1139. local ROTATION1 = (Table.RotationX or 0)
  1140. local ROTATION2 = (Table.RotationY or 0)
  1141. local ROTATION3 = (Table.RotationZ or 0)
  1142. local MATERIAL = (Table.Material or "Neon")
  1143. local COLOR = (Table.Color or GUN.Color)
  1144. local TIME = (Table.Time or 45)
  1145. local SOUNDID = (Table.SoundID or nil)
  1146. local SOUNDPITCH = (Table.SoundPitch or nil)
  1147. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1148. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  1149. local BOOMERANG = (Table.Boomerang or 0)
  1150. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  1151. coroutine.resume(coroutine.create(function()
  1152. local PLAYSSOUND = false
  1153. local SOUND = nil
  1154. local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,GUN.Color,"Effect",Vector3.new(1,1,1),true)
  1155. EFFECT.Reflectance = GUN.Reflectance
  1156. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1157. PLAYSSOUND = true
  1158. SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false)
  1159. end
  1160. EFFECT.Color = COLOR
  1161. local MSH = nil
  1162. if TYPE == "Sphere" then
  1163. MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.new())
  1164. elseif TYPE == "Block" or TYPE == "Box" then
  1165. MSH = Instance.new("BlockMesh",EFFECT)
  1166. MSH.Scale = SIZE
  1167. elseif TYPE == "Wave" then
  1168. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8))
  1169. elseif TYPE == "Ring" then
  1170. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,.1),Vector3.new())
  1171. elseif TYPE == "Slash" then
  1172. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  1173. elseif TYPE == "Round Slash" then
  1174. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  1175. elseif TYPE == "Swirl" then
  1176. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","168892432","",SIZE,Vector3.new())
  1177. elseif TYPE == "Skull" then
  1178. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.new())
  1179. elseif TYPE == "Crystal" then
  1180. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.new())
  1181. end
  1182. if MSH ~= nil then
  1183. local BOOMR1 = 1+BOOMERANG/50
  1184. local BOOMR2 = 1+SIZEBOOMERANG/50
  1185. local MOVESPEED = nil
  1186. if MOVEDIRECTION ~= nil then
  1187. if USEBOOMERANGMATH == true then
  1188. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  1189. else
  1190. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  1191. end
  1192. end
  1193. local GROWTH = nil
  1194. if USEBOOMERANGMATH == true then
  1195. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  1196. else
  1197. GROWTH = (SIZE - ENDSIZE)
  1198. end
  1199. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1200. if TYPE == "Block" then
  1201. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1202. else
  1203. EFFECT.CFrame = CFRAME
  1204. end
  1205. if USEBOOMERANGMATH == true then
  1206. for LOOP = 1,TIME+1 do
  1207. Swait()
  1208. MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  1209. if TYPE == "Wave" then
  1210. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  1211. end
  1212. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1213. if TYPE == "Block" then
  1214. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1215. else
  1216. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1217. end
  1218. if MOVEDIRECTION ~= nil then
  1219. local ORI = EFFECT.Orientation
  1220. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  1221. EFFECT.Orientation = ORI
  1222. end
  1223. end
  1224. else
  1225. for LOOP = 1,TIME+1 do
  1226. Swait()
  1227. MSH.Scale = MSH.Scale - GROWTH/TIME
  1228. if TYPE == "Wave" then
  1229. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  1230. end
  1231. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1232. if TYPE == "Block" then
  1233. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1234. else
  1235. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1236. end
  1237. if MOVEDIRECTION ~= nil then
  1238. local ORI = EFFECT.Orientation
  1239. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
  1240. EFFECT.Orientation = ORI
  1241. end
  1242. end
  1243. end
  1244. EFFECT.Transparency = 1
  1245. if PLAYSSOUND == false then
  1246. EFFECT:Destroy()
  1247. else
  1248. repeat if stoppingeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1249. EFFECT:Destroy()
  1250. end
  1251. else
  1252. if PLAYSSOUND == false then
  1253. EFFECT:Destroy()
  1254. else
  1255. repeat if stoppingeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1256. EFFECT:Destroy()
  1257. end
  1258. end
  1259. end))
  1260. end
  1261.  
  1262. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  1263. if DoesCourontine == false then
  1264. local Direction = CFrame.new(Part.Position,ToLocation)
  1265. local Distance = (Part.Position - ToLocation).Magnitude
  1266. for i = 1,AmountOfTime do
  1267. Swait()
  1268. Part.CFrame = Direction*CFrame.new(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1269. Direction = Part.CFrame
  1270. end
  1271. elseif DoesCourontine == true then
  1272. coroutine.resume(coroutine.create(function()
  1273. local Direction = CFrame.new(Part.Position,ToLocation)
  1274. local Distance = (Part.Position - ToLocation).Magnitude
  1275. for i = 1,AmountOfTime do
  1276. Swait()
  1277. Part.CFrame = Direction*CFrame.new(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1278. Direction = Part.CFrame
  1279. end
  1280. end))
  1281. end
  1282. end
  1283.  
  1284. function MakeForm(PART,TYPE)
  1285. if TYPE == "Cyl" then
  1286. local MSH = Instance.new("CylinderMesh",PART)
  1287. elseif TYPE == "Ball" then
  1288. local MSH = Instance.new("SpecialMesh",PART)
  1289. MSH.MeshType = "Sphere"
  1290. elseif TYPE == "Wedge" then
  1291. local MSH = Instance.new("SpecialMesh",PART)
  1292. MSH.MeshType = "Wedge"
  1293. end
  1294. end
  1295.  
  1296. function WACKYEFFECT(Table)
  1297. local TYPE = (Table.EffectType or "Sphere")
  1298. local SIZE = (Table.Size or Vector3.new(1,1,1))
  1299. local ENDSIZE = (Table.Size2 or Vector3.new())
  1300. local TRANSPARENCY = (Table.Transparency or 0)
  1301. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1302. local CFRAME = (Table.CFrame or Torso.CFrame)
  1303. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1304. local ROTATION1 = (Table.RotationX or 0)
  1305. local ROTATION2 = (Table.RotationY or 0)
  1306. local ROTATION3 = (Table.RotationZ or 0)
  1307. local MATERIAL = (Table.Material or "Neon")
  1308. local COLOR = (Table.Color or GUN.Color)
  1309. local hOK,sOK,vOK = Color3.toHSV(COLOR)
  1310. local RAINBOWPART = false
  1311. if sOK > .1 then
  1312. RAINBOWPART = true
  1313. end
  1314. local TIME = (Table.Time or 45)
  1315. local SOUNDID = (Table.SoundID or nil)
  1316. local SOUNDPITCH = (Table.SoundPitch or nil)
  1317. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1318. coroutine.resume(coroutine.create(function()
  1319. local PLAYSSOUND = false
  1320. local SOUND = nil
  1321. local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,GUN.Color,"Effect",Vector3.new(1,1,1),true)
  1322. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1323. PLAYSSOUND = true
  1324. SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false)
  1325. end
  1326. EFFECT.Color = COLOR
  1327. if RAINBOWPART then
  1328. coroutine.resume(coroutine.create(function()
  1329. while stoppingeverything ~= true and EFFECT:IsDescendantOf(game) do
  1330. EFFECT.Color = GUN.NeonParts.Color
  1331. Swait()
  1332. end
  1333. end))
  1334. end
  1335. local MSH = nil
  1336. if TYPE == "Sphere" then
  1337. MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.new())
  1338. elseif TYPE == "Block" then
  1339. MSH = Instance.new("BlockMesh",EFFECT)
  1340. MSH.Scale = Vector3.new(SIZE.X,SIZE.Y,SIZE.Z)
  1341. elseif TYPE == "Wave" then
  1342. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8))
  1343. elseif TYPE == "Ring" then
  1344. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,.1),Vector3.new())
  1345. elseif TYPE == "Slash" then
  1346. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  1347. elseif TYPE == "Round Slash" then
  1348. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  1349. elseif TYPE == "Swirl" then
  1350. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","1051557","",SIZE,Vector3.new())
  1351. elseif TYPE == "Skull" then
  1352. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.new())
  1353. elseif TYPE == "Crystal" then
  1354. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.new())
  1355. end
  1356. if MSH ~= nil then
  1357. local MOVESPEED = nil
  1358. if MOVEDIRECTION ~= nil then
  1359. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1360. end
  1361. local GROWTH = SIZE - ENDSIZE
  1362. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1363. EFFECT.CFrame = CFRAME
  1364. for LOOP = 1,TIME+1 do
  1365. Swait()
  1366. MSH.Scale = MSH.Scale - GROWTH/TIME
  1367. if TYPE == "Wave" then
  1368. MSH.Offset = Vector3.new(0,0,-MSH.Scale.X/8)
  1369. end
  1370. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1371. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1372. if MOVEDIRECTION ~= nil then
  1373. local ORI = EFFECT.Orientation
  1374. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
  1375. EFFECT.Orientation = ORI
  1376. end
  1377. end
  1378. if PLAYSSOUND == false then
  1379. EFFECT:remove()
  1380. else
  1381. repeat if stoppingeverything then wait(math.huge) end Swait() until SOUND.Playing == false
  1382. EFFECT:remove()
  1383. end
  1384. else
  1385. if PLAYSSOUND == false then
  1386. EFFECT:remove()
  1387. else
  1388. repeat if stoppingeverything then wait(math.huge) end Swait() until SOUND.Playing == false
  1389. EFFECT:remove()
  1390. end
  1391. end
  1392. end))
  1393. end
  1394.  
  1395. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1396. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1397. end
  1398.  
  1399. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1400. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  1401. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1402. end
  1403.  
  1404. function Shoot()
  1405. attack = true
  1406. local HIT,POS = CastProperRay(GUN.Position, Mouse.Hit.p, 1000, Character)
  1407. local DIST = (GUN.Position - POS).Magnitude
  1408. coroutine.wrap(function()
  1409. for i = 0,2 do
  1410. Swait(12)
  1411. CreateSound(199145095,GUN.Joint,10,1)
  1412. end
  1413. end)()
  1414. for x = 0,2,.05 do
  1415. Swait()
  1416. att0.Orientation = Vector3.new(50, -88, 0)
  1417. att0.Position = Vector3.new(-1.5, 0.6, 0)
  1418. Neck.C0 = Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(-35),math.rad(0),math.rad(35)),1)
  1419. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-35),math.rad(-35),math.rad(20)) * rscp,1)
  1420. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-.5,.5,-.5) * CFrame.Angles(math.rad(89),math.rad(0),math.rad(89)) * LEFTSHOULDERC0,1)
  1421. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,0 + .5 * math.cos(sine/25))*CFrame.Angles(math.rad(35 - 1 * math.cos(sine/54*1.2)),math.rad(0 - 2 * math.cos(sine/54*1.5)),math.rad(-35)),1)
  1422. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1423. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1424. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(doe * 22),math.rad(0),math.rad(0)),1)
  1425. end
  1426. CreateSound(138677306,GUN,10,.9,false)
  1427. CreateSound(415700134,GUN,10,.9,false)
  1428. repeat
  1429. Particles1.Enabled = true
  1430. Particles2.Enabled = true
  1431. Beam.Enabled = true
  1432. for i,v in pairs(BeamIdk:GetChildren()) do
  1433. if v:IsA("Beam") then
  1434. v.Enabled = true
  1435. v.CurveSize0 = math.random(-15,15)
  1436. v.CurveSize1 = math.random(-15,15)
  1437. end
  1438. end
  1439. ParticlesPos2.WorldPosition = POS
  1440. ParticlesPos2.Orientation = Vector3.new(math.rad(math.random(-9999,9999)),math.rad(math.random(-9999,9999)),math.rad(math.random(-9999,9999)))
  1441. ParticlesPos1.Orientation = Vector3.new(math.rad(math.random(-9999,9999)),math.rad(math.random(-9999,9999)),math.rad(math.random(-9999,9999)))
  1442. HIT,POS = CastProperRay(GUN.Position, Mouse.Hit.p, 1000, Character)
  1443. DIST = (GUN.Position - POS).Magnitude
  1444. mdmg(POS,10)
  1445. for x = 0, 2, 1 do
  1446. Swait()
  1447. att0.Orientation = Vector3.new(50, -88, 0)
  1448. att0.Position = Vector3.new(-1.5, 0.6, 0)
  1449. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector, 0, {workspace})
  1450. RootPart.CFrame = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1451. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,0 + .5 * math.cos(sine/25))*CFrame.Angles(0,math.rad(0 - 2 * math.cos(sine/54*1.5)),math.rad(-30)),1)
  1452. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0 ,0 + ((1) - 1)) * CFrame.Angles(math.rad(0 - 3 * math.cos(sine/54*1.2)),math.rad(0 - 4 * math.cos(sine/54*1.5)),math.rad(30)),1)
  1453. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.25,.5,-.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)) * rscp,1)
  1454. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-0.3,.6,-1) * CFrame.Angles(math.rad(95),math.rad(0),math.rad(25)) * lscp,1)
  1455. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,0) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1456. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.7) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1457. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-.5,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1)
  1458. end
  1459. until kh2 == false
  1460. CreateSound(3264923,GUN,10,.8,false)
  1461. attack = false
  1462. for i,v in pairs(BeamIdk:GetChildren()) do
  1463. if v:IsA("Beam") then
  1464. v.Enabled = false
  1465. v.CurveSize0 = 0
  1466. v.CurveSize1 = 0
  1467. end
  1468. end
  1469. Particles1.Enabled = false
  1470. Particles2.Enabled = false
  1471. Beam.Enabled = false
  1472. ParticlesPos2.WorldPosition = ParticlesPos1.WorldPosition
  1473. att0.Orientation = Vector3.new(140,90,-5)
  1474. att0.Position = Vector3.new(-1.3,-.1,0)
  1475. end
  1476. Mouse.Button1Down:Connect(function()
  1477. if stoppingeverything then wait(math.huge) end
  1478. kh2 = true
  1479. if not attack and not stoppingeverything and (tauntvalue.Value ~= "Fave" and tauntvalue.Value ~= "Krump" and tauntvalue.Value ~= "OOOOO") then
  1480. Shoot()
  1481. end
  1482. end)
  1483.  
  1484. Mouse.Button1Up:Connect(function()
  1485. if stoppingeverything then wait(math.huge) end
  1486. kh2 = false
  1487. end)
  1488.  
  1489. local function fixer()
  1490. alreadyfixing = true
  1491. local camerapos = workspace.CurrentCamera.CFrame
  1492. workspace.CurrentCamera.CameraSubject = Head
  1493. workspace.CurrentCamera.CameraType = "Scriptable"
  1494. workspace.CurrentCamera.CFrame = camerapos
  1495. for _,v in pairs(char:GetChildren()) do
  1496. if v:IsA("Part") then
  1497. v.CFrame = MainPosition
  1498. end
  1499. end
  1500. if not songvolume then
  1501. local songvolume = Instance.new("NumberValue")
  1502. songvolume.Name = "SongVolume/FE MLC.V3"
  1503. songvolume.Value = .45
  1504. songvolume.Parent = MainFolder
  1505. end
  1506. if not songpitch then
  1507. local songpitch = Instance.new("NumberValue")
  1508. songpitch.Name = "SongPitch/FE MLC.V3"
  1509. songpitch.Value = 1
  1510. songpitch.Parent = MainFolder
  1511. end
  1512. if not songid then
  1513. local songid = Instance.new("StringValue")
  1514. songid.Name = "SongID/FE MLC.V3"
  1515. songid.Value = "rbxassetid://9669449611"
  1516. songid.Parent = MainFolder
  1517. end
  1518. if not AnimSync then
  1519. local AnimSync = Instance.new("NumberValue")
  1520. AnimSync.Name = "AnimSync"
  1521. AnimSync.Value = 0
  1522. AnimSync.Parent = MainFolder
  1523. end
  1524. if not tauntvalue then
  1525. local tauntvalue = Instance.new("StringValue")
  1526. tauntvalue.Name = "TauntRemote/FE MLC.V3"
  1527. tauntvalue.Parent = MainFolder
  1528. end
  1529. for _,v in pairs(Effects:GetChildren()) do
  1530. game:GetService("Debris"):AddItem(v)
  1531. end
  1532. game:GetService("Debris"):AddItem(Sound)
  1533. task.wait(1)
  1534. kh = false
  1535. attack = false
  1536. MOVING = false
  1537. Sound=Instance.new("Sound",workspace)
  1538. Sound.SoundId=songid.Value
  1539. Sound.Volume=songvolume.Value
  1540. Sound.Pitch=songpitch.Value
  1541. Sound.Looped=true
  1542. Sound:Play()
  1543. MainPosition = CFrame.new(0,150,0)
  1544. coroutine.resume(coroutine.create(function()
  1545. Swait(5)
  1546. workspace.CurrentCamera.CameraType = "Custom"
  1547. end))
  1548. local ee = false
  1549. task.spawn(function()
  1550. while true do
  1551. Swait()
  1552. if ee then break end
  1553. Fling_Target = "none"
  1554. MainPosition = CFrame.new(0,150,0)
  1555. for _,v in pairs(Effects:GetChildren()) do
  1556. game:GetService("Debris"):AddItem(v)
  1557. end
  1558. end
  1559. end)
  1560. delay(2,function()
  1561. ee = true
  1562. end)
  1563. for _,v in pairs(char:GetDescendants()) do
  1564. if v:IsA("Part") or v:IsA("MeshPart") then
  1565. if (v.Position - MainPosition.Position).Magnitude > 15 then
  1566. repeat Swait()
  1567. alreadyfixing = true
  1568. v.Anchored = false
  1569. for _,Partt in pairs(Character:GetChildren()) do
  1570. if Partt:IsA("Part") or Partt:IsA("MeshPart") and Partt.Name == v.Name then
  1571. v.CFrame = Partt.CFrame
  1572. v.Velocity = Vector3.new(0,-1,0)
  1573. end
  1574. end
  1575. until (v.Position - MainPosition.Position).Magnitude < 15
  1576. alreadyfixing = false
  1577. v.Anchored = false
  1578. end
  1579. end
  1580. end
  1581. Fling_Target = "None"
  1582. alreadyfixing = false
  1583. chatfunc(randomstring())
  1584. end
  1585.  
  1586. Mouse.KeyDown:Connect(function(k)
  1587. if stoppingeverything then wait(math.huge) end
  1588. k = k:lower()
  1589. kh = true
  1590. if k == "z" and not stoppingeverything and not attack and (tauntvalue.Value ~= "Fave" and tauntvalue.Value ~= "Krump" and tauntvalue.Value ~= "OOOOO") then
  1591. MainPosition = Mouse.Hit
  1592. elseif k == "r" and not stoppingeverything and attack == false then
  1593. fixer()
  1594. elseif k == "f" and not stoppingeverything and attack == false then
  1595. local ee = false
  1596. task.spawn(function()
  1597. while true do
  1598. Swait()
  1599. if ee then break end
  1600. Fling_Target = "None"
  1601. for _,v in pairs(Effects:GetChildren()) do
  1602. game:GetService("Debris"):AddItem(v)
  1603. end
  1604. end
  1605. end)
  1606. delay(2,function()
  1607. ee = true
  1608. end)
  1609. chatfunc("Cleared fling and effect tables")
  1610. elseif k == "p" and not stoppingeverything then
  1611. MainPosition = CFrame.new(0,150,0)
  1612. elseif k == "w" and not stoppingeverything then
  1613. repeat
  1614. MOVING = true
  1615. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector*walkspeed, walkspeed*0.02, {workspace})
  1616. MainPosition = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1617. if attack == false then
  1618. att0.Orientation = Vector3.new(50, -88, 0)
  1619. att0.Position = Vector3.new(-1.5, 0.6, 0)
  1620. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,0 + .5 * math.cos(sine/25))*CFrame.Angles(math.rad(45),math.rad(0 - 2 * math.cos(sine/54*1.5)),math.rad(-30)),1)
  1621. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0 ,0 + ((1) - 1)) * CFrame.Angles(math.rad(-45 - 3 * math.cos(sine/54*1.2)),math.rad(0 - 4 * math.cos(sine/54*1.5)),math.rad(30)),1)
  1622. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-45),math.rad(-2),math.rad(14)) * RIGHTSHOULDERC0,1)
  1623. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-.5,.5,-.5) * CFrame.Angles(math.rad(89),math.rad(0),math.rad(89)) * LEFTSHOULDERC0,1)
  1624. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,0) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1625. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.7) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1626. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-.5,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1)
  1627. end
  1628. Swait()
  1629. until kh == false
  1630. att0.Orientation = Vector3.new(140,90,-5)
  1631. att0.Position = Vector3.new(-1.3,-.1,0)
  1632. MOVING = false
  1633. elseif k == "s" and not stoppingeverything then
  1634. repeat
  1635. MOVING = true
  1636. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector*-walkspeed, walkspeed*0.02, {workspace})
  1637. MainPosition = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1638. if attack == false then
  1639. att0.Orientation = Vector3.new(50, -88, 0)
  1640. att0.Position = Vector3.new(-1.5, 0.6, 0)
  1641. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,0 + .5 * math.cos(sine/25))*CFrame.Angles(math.rad(-45),math.rad(0 - 2 * math.cos(sine/54*1.5)),math.rad(-30)),1)
  1642. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0 ,0 + ((1) - 1)) * CFrame.Angles(math.rad(45 - 3 * math.cos(sine/54*1.2)),math.rad(0 - 4 * math.cos(sine/54*1.5)),math.rad(30)),1)
  1643. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(45),math.rad(-2),math.rad(14)) * RIGHTSHOULDERC0,1)
  1644. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-.5,.5,-.5) * CFrame.Angles(math.rad(89),math.rad(0),math.rad(89)) * LEFTSHOULDERC0,1)
  1645. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,0) * CFrame.Angles(math.rad(15 + 9 * math.sin(sine/25)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1646. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.7) * CFrame.Angles(math.rad(15 + 9 * math.sin(sine/25)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1647. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-.5,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1)
  1648. end
  1649. Swait()
  1650. until kh == false
  1651. att0.Orientation = Vector3.new(140,90,-5)
  1652. att0.Position = Vector3.new(-1.3,-.1,0)
  1653. MOVING = false
  1654. end
  1655. end)
  1656.  
  1657. for _,v in pairs(char:FindFirstChild("Head"):GetChildren()) do
  1658. if v:IsA("Decal") then
  1659. v:Destroy()
  1660. end
  1661. end
  1662.  
  1663. for _,v in pairs(Character:FindFirstChild("Head"):GetChildren()) do
  1664. if v:IsA("Decal") then
  1665. v:Destroy()
  1666. end
  1667. end
  1668.  
  1669.  
  1670. Mouse.KeyUp:Connect(function()
  1671. if stoppingeverything then wait(math.huge) end
  1672. kh = false
  1673. end)
  1674.  
  1675. chatfunc("Luaquck toke down the song so changed it to lcv1 theme....")
  1676.  
  1677. coroutine.wrap(function()
  1678. while stoppingeverything ~= true do
  1679. Swait()
  1680. if doe < 360 then
  1681. doe = doe + 2
  1682. else
  1683. doe = 0
  1684. end
  1685. end
  1686. end)()
  1687.  
  1688. function UnSleep()
  1689. for _,v in pairs(Character:GetDescendants()) do
  1690. if v:IsA("Part") and v.Velocity == Vector3.new(0,0,0) then
  1691. v.Velocity = Vector3.new(0,-1,0)
  1692. end
  1693. end
  1694. end
  1695.  
  1696. game:GetService("RunService").Stepped:Connect(UnSleep)
  1697.  
  1698. while stoppingeverything ~= true do
  1699. if not alreadyfixing then
  1700. if not soundfixing then
  1701. if Sound.Volume ~= songvolume.Value then
  1702. Sound.Volume = songvolume.Value
  1703. end
  1704. if Sound.Pitch ~= songpitch.Value then
  1705. Sound.Pitch = songpitch.Value
  1706. end
  1707. if Sound.SoundId ~= songid.Value then
  1708. Sound.SoundId = songid.Value
  1709. end
  1710. if Sound.Playing ~= true then
  1711. Sound.Playing = true
  1712. end
  1713. if Sound.Looped ~= true then
  1714. Sound.Looped = true
  1715. end
  1716. if Sound.EmitterSize ~= 50 then
  1717. Sound.EmitterSize = 50
  1718. end
  1719. if Sound.MaxDistance ~= 100000 then
  1720. Sound.MaxDistance = 100000
  1721. end
  1722. if Sound.PlayOnRemove ~= false then
  1723. Sound.PlayOnRemove = false
  1724. end
  1725. end
  1726. RootPart.Anchored = true
  1727. sine = sine + 1
  1728. end
  1729. if RootPart.CFrame ~= MainPosition and not attack then
  1730. RootPart.Anchored = false
  1731. RootPart.CFrame = MainPosition
  1732. RootPart.Anchored = true
  1733. end
  1734. if MOVING == false and attack == false then
  1735. att0.Orientation = Vector3.new(140,90,-5)
  1736. att0.Position = Vector3.new(-1.3,-.1,0)
  1737. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,0 + .5 * math.cos(sine/25))*CFrame.Angles(math.rad(0 - 1 * math.cos(sine/54*1.2)),math.rad(0 - 2 * math.cos(sine/54*1.5)),math.rad(-35)),1)
  1738. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0 ,0 + ((1) - 1)) * CFrame.Angles(math.rad(0 - 3 * math.cos(sine/54*1.2)),math.rad(0 - 4 * math.cos(sine/54*1.5)),math.rad(35)),1)
  1739. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(75 + 8.5 * math.cos(sine/25)),math.rad(-20),math.rad(40)) * RIGHTSHOULDERC0,1)
  1740. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(25 + 8.5 * math.cos(sine/25)),math.rad(0),math.rad(-25 - 5 * math.cos(sine/25))) * LEFTSHOULDERC0,1)
  1741. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1742. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 + 9 * math.sin(sine/25)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.sin(sine/25)),math.rad(0),math.rad(0)),1)
  1743. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-.7,0) * CFrame.Angles(math.rad(95),math.rad(0),math.rad(180)),1)
  1744. end
  1745. if not MainFolder:IsDescendantOf(game) then
  1746. break
  1747. end
  1748. Swait()
  1749. end
Add Comment
Please, Sign In to add comment