Advertisement
Fluxushr

Untitled

Apr 3rd, 2023 (edited)
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 109.95 KB | None | 0 0
  1. game.Players.LocalPlayer.Character["Lipstick_Bag_3.0"].Handle.Mesh:Destroy()
  2. game.Players.LocalPlayer.Character["InternationalFedora"].Handle.SpecialMesh:Destroy()
  3. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy()
  4. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy() --LavanderHair
  5. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  6. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy()
  7. game.Players.LocalPlayer.Character["Surfboard"].Handle.Handle:Destroy()
  8. game.Players.LocalPlayer.Character["AppleHead"].Handle.Mesh:Destroy()
  9. game.Players.LocalPlayer.Character["Metashard"].Handle.SpecialMesh:Destroy()
  10. game.Players.LocalPlayer.Character["LN_2021_Closed"].Handle.Mesh:Destroy()
  11. --VarietyShades02
  12. --TennisBall
  13.  
  14. local c = game.Players.LocalPlayer.Character
  15. for i, v in pairs({"Right Arm", "Left Arm"}) do
  16. local arm = c[v]
  17. arm.Parent = nil
  18. arm.Transparency = 1
  19. arm.Parent = c
  20. end
  21.  
  22. local c = game.Players.LocalPlayer.Character
  23. for i, v in pairs({"Right Leg", "Left Leg"}) do
  24. local Leg = c[v]
  25. Leg.Parent = nil
  26. Leg.Transparency = 1
  27. Leg.Parent = c
  28. end
  29.  
  30. local v3_net, v3_808 = Vector3.new(0, 25.1, 0), Vector3.new(8, 0, 8)
  31. local function getNetlessVelocity(realPartVelocity)
  32. local mag = realPartVelocity.Magnitude
  33. if mag > 1 then
  34. local unit = realPartVelocity.Unit
  35. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  36. return unit * (25.1 / unit.Y)
  37. end
  38. end
  39. return v3_net + realPartVelocity * v3_808
  40. end
  41. local simradius = "shp" --simulation radius (net bypass) method
  42. --simulation radius (net bypass) method
  43. --"shp" - sethiddenproperty
  44. --"ssr" - setsimulationradius
  45. --false - disable
  46. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  47. local newanimate = false --disables the animate script and enables after reanimation
  48. local discharscripts = true --disables all localScripts parented to your character before reanimation
  49. local R15toR6 = true --tries to convert your character to r6 if its r15
  50. local hatcollide = true --makes hats cancollide (only method 0)
  51. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  52. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  53. local hedafterneck = false --disable aligns for head and enable after neck is removed
  54. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  55. local method = 0 --reanimation method
  56. --methods:
  57. --0 - breakJoints (takes [loadtime] seconds to laod)
  58. --1 - limbs
  59. --2 - limbs + anti respawn
  60. --3 - limbs + breakJoints after [loadtime] seconds
  61. --4 - remove humanoid + breakJoints
  62. --5 - remove humanoid + limbs
  63. local alignmode = 3 --AlignPosition mode
  64. --modes:
  65. --1 - AlignPosition rigidity enabled true
  66. --2 - 2 AlignPositions rigidity enabled both true and false
  67. --3 - AlignPosition rigidity enabled false
  68.  
  69. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
  70.  
  71. local lp = game:GetService("Players").LocalPlayer
  72. local rs = game:GetService("RunService")
  73. local stepped = rs.Stepped
  74. local heartbeat = rs.Heartbeat
  75. local renderstepped = rs.RenderStepped
  76. local sg = game:GetService("StarterGui")
  77. local ws = game:GetService("Workspace")
  78. local cf = CFrame.new
  79. local v3 = Vector3.new
  80. local v3_0 = v3(0, 0, 0)
  81. local inf = math.huge
  82.  
  83. local c = lp.Character
  84.  
  85. if not (c and c.Parent) then
  86. return
  87. end
  88.  
  89. c.Destroying:Connect(function()
  90. c = nil
  91. end)
  92.  
  93. local function gp(parent, name, className)
  94. if typeof(parent) == "Instance" then
  95. for i, v in pairs(parent:GetChildren()) do
  96. if (v.Name == name) and v:IsA(className) then
  97. return v
  98. end
  99. end
  100. end
  101. return nil
  102. end
  103.  
  104. local function align(Part0, Part1)
  105. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
  106.  
  107. local att0 = Instance.new("Attachment", Part0)
  108. att0.Orientation = v3_0
  109. att0.Position = v3_0
  110. att0.Name = "att0_" .. Part0.Name
  111. local att1 = Instance.new("Attachment", Part1)
  112. att1.Orientation = v3_0
  113. att1.Position = v3_0
  114. att1.Name = "att1_" .. Part1.Name
  115.  
  116. if (alignmode == 1) or (alignmode == 2) then
  117. local ape = Instance.new("AlignPosition", att0)
  118. ape.ApplyAtCenterOfMass = false
  119. ape.MaxForce = inf
  120. ape.MaxVelocity = inf
  121. ape.ReactionForceEnabled = false
  122. ape.Responsiveness = 200
  123. ape.Attachment1 = att1
  124. ape.Attachment0 = att0
  125. ape.Name = "AlignPositionRtrue"
  126. ape.RigidityEnabled = true
  127. end
  128.  
  129. if (alignmode == 2) or (alignmode == 3) then
  130. local apd = Instance.new("AlignPosition", att0)
  131. apd.ApplyAtCenterOfMass = false
  132. apd.MaxForce = inf
  133. apd.MaxVelocity = inf
  134. apd.ReactionForceEnabled = false
  135. apd.Responsiveness = 200
  136. apd.Attachment1 = att1
  137. apd.Attachment0 = att0
  138. apd.Name = "AlignPositionRfalse"
  139. apd.RigidityEnabled = false
  140. end
  141.  
  142. local ao = Instance.new("AlignOrientation", att0)
  143. ao.MaxAngularVelocity = inf
  144. ao.MaxTorque = inf
  145. ao.PrimaryAxisOnly = false
  146. ao.ReactionTorqueEnabled = false
  147. ao.Responsiveness = 200
  148. ao.Attachment1 = att1
  149. ao.Attachment0 = att0
  150. ao.RigidityEnabled = false
  151.  
  152. if type(getNetlessVelocity) == "function" then
  153. local realVelocity = v3_0
  154. local steppedcon = stepped:Connect(function()
  155. Part0.Velocity = realVelocity
  156. end)
  157. local heartbeatcon = heartbeat:Connect(function()
  158. realVelocity = Part0.Velocity
  159. Part0.Velocity = getNetlessVelocity(realVelocity)
  160. end)
  161. Part0.Destroying:Connect(function()
  162. Part0 = nil
  163. steppedcon:Disconnect()
  164. heartbeatcon:Disconnect()
  165. end)
  166. end
  167. end
  168.  
  169. local function respawnrequest()
  170. local ccfr = ws.CurrentCamera.CFrame
  171. local c = lp.Character
  172. lp.Character = nil
  173. lp.Character = c
  174. local con = nil
  175. con = ws.CurrentCamera.Changed:Connect(function(prop)
  176. if (prop ~= "Parent") and (prop ~= "CFrame") then
  177. return
  178. end
  179. ws.CurrentCamera.CFrame = ccfr
  180. con:Disconnect()
  181. end)
  182. end
  183.  
  184. local destroyhum = (method == 4) or (method == 5)
  185. local breakjoints = (method == 0) or (method == 4)
  186. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  187.  
  188. hatcollide = hatcollide and (method == 0)
  189.  
  190. addtools = addtools and gp(lp, "Backpack", "Backpack")
  191.  
  192. local fenv = getfenv()
  193. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  194. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
  195.  
  196. if shp and (simradius == "shp") then
  197. spawn(function()
  198. while c and heartbeat:Wait() do
  199. shp(lp, "SimulationRadius", inf)
  200. end
  201. end)
  202. elseif ssr and (simradius == "ssr") then
  203. spawn(function()
  204. while c and heartbeat:Wait() do
  205. ssr(inf)
  206. end
  207. end)
  208. end
  209.  
  210. antiragdoll = antiragdoll and function(v)
  211. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  212. v.Parent = nil
  213. end
  214. end
  215.  
  216. if antiragdoll then
  217. for i, v in pairs(c:GetDescendants()) do
  218. antiragdoll(v)
  219. end
  220. c.DescendantAdded:Connect(antiragdoll)
  221. end
  222.  
  223. if antirespawn then
  224. respawnrequest()
  225. end
  226.  
  227. if method == 0 then
  228. wait(loadtime)
  229. if not c then
  230. return
  231. end
  232. end
  233.  
  234. if discharscripts then
  235. for i, v in pairs(c:GetChildren()) do
  236. if v:IsA("LocalScript") then
  237. v.Disabled = true
  238. end
  239. end
  240. elseif newanimate then
  241. local animate = gp(c, "Animate", "LocalScript")
  242. if animate and (not animate.Disabled) then
  243. animate.Disabled = true
  244. else
  245. newanimate = false
  246. end
  247. end
  248.  
  249. if addtools then
  250. for i, v in pairs(addtools:GetChildren()) do
  251. if v:IsA("Tool") then
  252. v.Parent = c
  253. end
  254. end
  255. end
  256.  
  257. pcall(function()
  258. settings().Physics.AllowSleep = false
  259. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  260. end)
  261.  
  262. local OLDscripts = {}
  263.  
  264. for i, v in pairs(c:GetDescendants()) do
  265. if v.ClassName == "Script" then
  266. table.insert(OLDscripts, v)
  267. end
  268. end
  269.  
  270. local scriptNames = {}
  271.  
  272. for i, v in pairs(c:GetDescendants()) do
  273. if v:IsA("BasePart") then
  274. local newName = tostring(i)
  275. local exists = true
  276. while exists do
  277. exists = false
  278. for i, v in pairs(OLDscripts) do
  279. if v.Name == newName then
  280. exists = true
  281. end
  282. end
  283. if exists then
  284. newName = newName .. "_"
  285. end
  286. end
  287. table.insert(scriptNames, newName)
  288. Instance.new("Script", v).Name = newName
  289. end
  290. end
  291.  
  292. c.Archivable = true
  293. local hum = c:FindFirstChildOfClass("Humanoid")
  294. if hum then
  295. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  296. v:Stop()
  297. end
  298. end
  299. local cl = c:Clone()
  300. if hum and humState16 then
  301. hum:ChangeState(Enum.HumanoidStateType.Physics)
  302. if destroyhum then
  303. wait(1.6)
  304. end
  305. end
  306. if hum and hum.Parent and destroyhum then
  307. hum:Destroy()
  308. end
  309.  
  310. if not c then
  311. return
  312. end
  313.  
  314. local head = gp(c, "Head", "BasePart")
  315. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  316. local root = gp(c, "HumanoidRootPart", "BasePart")
  317. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  318. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  319. if not (torso and root and anything) then
  320. return
  321. end
  322. torso:Destroy()
  323. root:Destroy()
  324. if shp then
  325. for i,v in pairs(c:GetChildren()) do
  326. if v:IsA("Accessory") then
  327. shp(v, "BackendAccoutrementState", 0)
  328. end
  329. end
  330. end
  331. anything:Destroy()
  332. if head then
  333. head:Destroy()
  334. end
  335. end
  336.  
  337. for i, v in pairs(cl:GetDescendants()) do
  338. if v:IsA("BasePart") then
  339. v.Transparency = 1
  340. v.Anchored = false
  341. end
  342. end
  343.  
  344. local model = Instance.new("Model", c)
  345. model.Name = model.ClassName
  346.  
  347. model.Destroying:Connect(function()
  348. model = nil
  349. end)
  350.  
  351. for i, v in pairs(c:GetChildren()) do
  352. if v ~= model then
  353. if addtools and v:IsA("Tool") then
  354. for i1, v1 in pairs(v:GetDescendants()) do
  355. if v1 and v1.Parent and v1:IsA("BasePart") then
  356. local bv = Instance.new("BodyVelocity", v1)
  357. bv.Velocity = v3_0
  358. bv.MaxForce = v3(1000, 1000, 1000)
  359. bv.P = 1250
  360. bv.Name = "bv_" .. v.Name
  361. end
  362. end
  363. end
  364. v.Parent = model
  365. end
  366. end
  367.  
  368. if breakjoints then
  369. model:BreakJoints()
  370. else
  371. if head and torso then
  372. for i, v in pairs(model:GetDescendants()) do
  373. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  374. local save = false
  375. if (v.Part0 == torso) and (v.Part1 == head) then
  376. save = true
  377. end
  378. if (v.Part0 == head) and (v.Part1 == torso) then
  379. save = true
  380. end
  381. if save then
  382. if hedafterneck then
  383. hedafterneck = v
  384. end
  385. else
  386. v:Destroy()
  387. end
  388. end
  389. end
  390. end
  391. if method == 3 then
  392. spawn(function()
  393. wait(loadtime)
  394. if model then
  395. model:BreakJoints()
  396. end
  397. end)
  398. end
  399. end
  400.  
  401. cl.Parent = c
  402. for i, v in pairs(cl:GetChildren()) do
  403. v.Parent = c
  404. end
  405. cl:Destroy()
  406.  
  407. local modelDes = {}
  408. for i, v in pairs(model:GetDescendants()) do
  409. if v:IsA("BasePart") then
  410. i = tostring(i)
  411. v.Destroying:Connect(function()
  412. modelDes[i] = nil
  413. end)
  414. modelDes[i] = v
  415. end
  416. end
  417. local modelcolcon = nil
  418. local function modelcolf()
  419. if model then
  420. for i, v in pairs(modelDes) do
  421. v.CanCollide = false
  422. end
  423. else
  424. modelcolcon:Disconnect()
  425. end
  426. end
  427. modelcolcon = stepped:Connect(modelcolf)
  428. modelcolf()
  429.  
  430. for i, scr in pairs(model:GetDescendants()) do
  431. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  432. local Part0 = scr.Parent
  433. if Part0:IsA("BasePart") then
  434. for i1, scr1 in pairs(c:GetDescendants()) do
  435. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  436. local Part1 = scr1.Parent
  437. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  438. align(Part0, Part1)
  439. break
  440. end
  441. end
  442. end
  443. end
  444. end
  445. end
  446.  
  447. if (typeof(hedafterneck) == "Instance") and head then
  448. local aligns = {}
  449. local con = nil
  450. con = hedafterneck.Changed:Connect(function(prop)
  451. if (prop == "Parent") and not hedafterneck.Parent then
  452. con:Disconnect()
  453. for i, v in pairs(aligns) do
  454. v.Enabled = true
  455. end
  456. end
  457. end)
  458. for i, v in pairs(head:GetDescendants()) do
  459. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  460. i = tostring(i)
  461. aligns[i] = v
  462. v.Destroying:Connect(function()
  463. aligns[i] = nil
  464. end)
  465. v.Enabled = false
  466. end
  467. end
  468. end
  469.  
  470. for i, v in pairs(c:GetDescendants()) do
  471. if v and v.Parent then
  472. if v.ClassName == "Script" then
  473. if table.find(scriptNames, v.Name) then
  474. v:Destroy()
  475. end
  476. elseif not v:IsDescendantOf(model) then
  477. if v:IsA("Decal") then
  478. v.Transparency = 1
  479. elseif v:IsA("ForceField") then
  480. v.Visible = false
  481. elseif v:IsA("Sound") then
  482. v.Playing = false
  483. elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
  484. v.Enabled = false
  485. end
  486. end
  487. end
  488. end
  489.  
  490. if newanimate then
  491. local animate = gp(c, "Animate", "LocalScript")
  492. if animate then
  493. animate.Disabled = false
  494. end
  495. end
  496.  
  497. if addtools then
  498. for i, v in pairs(c:GetChildren()) do
  499. if v:IsA("Tool") then
  500. v.Parent = addtools
  501. end
  502. end
  503. end
  504.  
  505. local hum0 = model:FindFirstChildOfClass("Humanoid")
  506. if hum0 then
  507. hum0.Destroying:Connect(function()
  508. hum0 = nil
  509. end)
  510. end
  511.  
  512. local hum1 = c:FindFirstChildOfClass("Humanoid")
  513. if hum1 then
  514. hum1.Destroying:Connect(function()
  515. hum1 = nil
  516. end)
  517. end
  518.  
  519. if hum1 then
  520. ws.CurrentCamera.CameraSubject = hum1
  521. local camSubCon = nil
  522. local function camSubFunc()
  523. camSubCon:Disconnect()
  524. if c and hum1 then
  525. ws.CurrentCamera.CameraSubject = hum1
  526. end
  527. end
  528. camSubCon = renderstepped:Connect(camSubFunc)
  529. if hum0 then
  530. hum0.Changed:Connect(function(prop)
  531. if hum1 and (prop == "Jump") then
  532. hum1.Jump = hum0.Jump
  533. end
  534. end)
  535. else
  536. respawnrequest()
  537. end
  538. end
  539.  
  540. local rb = Instance.new("BindableEvent", c)
  541. rb.Event:Connect(function()
  542. rb:Destroy()
  543. sg:SetCore("ResetButtonCallback", true)
  544. if destroyhum then
  545. c:BreakJoints()
  546. return
  547. end
  548. if hum0 and (hum0.Health > 0) then
  549. model:BreakJoints()
  550. hum0.Health = 0
  551. end
  552. if antirespawn then
  553. respawnrequest()
  554. end
  555. end)
  556. sg:SetCore("ResetButtonCallback", rb)
  557.  
  558. spawn(function()
  559. while c do
  560. if hum0 and hum1 then
  561. hum1.Jump = hum0.Jump
  562. end
  563. wait()
  564. end
  565. sg:SetCore("ResetButtonCallback", true)
  566. end)
  567.  
  568. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  569. if R15toR6 then
  570. local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  571. if part then
  572. local cfr = part.CFrame
  573. local R6parts = {
  574. head = {
  575. Name = "Head",
  576. Size = v3(2, 1, 1),
  577. R15 = {
  578. Head = 0
  579. }
  580. },
  581. torso = {
  582. Name = "Torso",
  583. Size = v3(2, 2, 1),
  584. R15 = {
  585. UpperTorso = 0.2,
  586. LowerTorso = -100
  587. }
  588. },
  589. root = {
  590. Name = "HumanoidRootPart",
  591. Size = v3(2, 2, 1),
  592. R15 = {
  593. HumanoidRootPart = 0
  594. }
  595. },
  596. leftArm = {
  597. Name = "Left Arm",
  598. Size = v3(1, 2, 1),
  599. R15 = {
  600. LeftHand = -0.73,
  601. LeftLowerArm = -0.2,
  602. LeftUpperArm = 0.4
  603. }
  604. },
  605. rightArm = {
  606. Name = "Right Arm",
  607. Size = v3(1, 2, 1),
  608. R15 = {
  609. RightHand = -0.73,
  610. RightLowerArm = -0.2,
  611. RightUpperArm = 0.4
  612. }
  613. },
  614. leftLeg = {
  615. Name = "Left Leg",
  616. Size = v3(1, 2, 1),
  617. R15 = {
  618. LeftFoot = -0.73,
  619. LeftLowerLeg = -0.15,
  620. LeftUpperLeg = 0.6
  621. }
  622. },
  623. rightLeg = {
  624. Name = "Right Leg",
  625. Size = v3(1, 2, 1),
  626. R15 = {
  627. RightFoot = -0.73,
  628. RightLowerLeg = -0.15,
  629. RightUpperLeg = 0.6
  630. }
  631. }
  632. }
  633. for i, v in pairs(c:GetChildren()) do
  634. if v:IsA("BasePart") then
  635. for i1, v1 in pairs(v:GetChildren()) do
  636. if v1:IsA("Motor6D") then
  637. v1.Part0 = nil
  638. end
  639. end
  640. end
  641. end
  642. part.Archivable = true
  643. for i, v in pairs(R6parts) do
  644. local part = part:Clone()
  645. part:ClearAllChildren()
  646. part.Name = v.Name
  647. part.Size = v.Size
  648. part.CFrame = cfr
  649. part.Anchored = false
  650. part.Transparency = 1
  651. part.CanCollide = false
  652. for i1, v1 in pairs(v.R15) do
  653. local R15part = gp(c, i1, "BasePart")
  654. local att = gp(R15part, "att1_" .. i1, "Attachment")
  655. if R15part then
  656. local weld = Instance.new("Weld", R15part)
  657. weld.Name = "Weld_" .. i1
  658. weld.Part0 = part
  659. weld.Part1 = R15part
  660. weld.C0 = cf(0, v1, 0)
  661. weld.C1 = cf(0, 0, 0)
  662. R15part.Massless = true
  663. R15part.Name = "R15_" .. i1
  664. R15part.Parent = part
  665. if att then
  666. att.Parent = part
  667. att.Position = v3(0, v1, 0)
  668. end
  669. end
  670. end
  671. part.Parent = c
  672. R6parts[i] = part
  673. end
  674. local R6joints = {
  675. neck = {
  676. Parent = R6parts.torso,
  677. Name = "Neck",
  678. Part0 = R6parts.torso,
  679. Part1 = R6parts.head,
  680. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  681. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  682. },
  683. rootJoint = {
  684. Parent = R6parts.root,
  685. Name = "RootJoint" ,
  686. Part0 = R6parts.root,
  687. Part1 = R6parts.torso,
  688. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  689. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  690. },
  691. rightShoulder = {
  692. Parent = R6parts.torso,
  693. Name = "Right Shoulder",
  694. Part0 = R6parts.torso,
  695. Part1 = R6parts.rightArm,
  696. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  697. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  698. },
  699. leftShoulder = {
  700. Parent = R6parts.torso,
  701. Name = "Left Shoulder",
  702. Part0 = R6parts.torso,
  703. Part1 = R6parts.leftArm,
  704. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  705. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  706. },
  707. rightHip = {
  708. Parent = R6parts.torso,
  709. Name = "Right Hip",
  710. Part0 = R6parts.torso,
  711. Part1 = R6parts.rightLeg,
  712. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  713. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  714. },
  715. leftHip = {
  716. Parent = R6parts.torso,
  717. Name = "Left Hip" ,
  718. Part0 = R6parts.torso,
  719. Part1 = R6parts.leftLeg,
  720. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  721. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  722. }
  723. }
  724. for i, v in pairs(R6joints) do
  725. local joint = Instance.new("Motor6D")
  726. for prop, val in pairs(v) do
  727. joint[prop] = val
  728. end
  729. R6joints[i] = joint
  730. end
  731. hum1.RigType = Enum.HumanoidRigType.R6
  732. hum1.HipHeight = 0
  733. end
  734. end
  735.  
  736.  
  737.  
  738. --find rig joints
  739.  
  740. local function fakemotor()
  741. return {C0=cf(), C1=cf()}
  742. end
  743.  
  744. local torso = gp(c, "Torso", "BasePart")
  745. local root = gp(c, "HumanoidRootPart", "BasePart")
  746.  
  747. local neck = gp(torso, "Neck", "Motor6D")
  748. neck = neck or fakemotor()
  749.  
  750. local rootJoint = gp(root, "RootJoint", "Motor6D")
  751. rootJoint = rootJoint or fakemotor()
  752.  
  753. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  754. leftShoulder = leftShoulder or fakemotor()
  755.  
  756. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  757. rightShoulder = rightShoulder or fakemotor()
  758.  
  759. local leftHip = gp(torso, "Left Hip", "Motor6D")
  760. leftHip = leftHip or fakemotor()
  761.  
  762. local rightHip = gp(torso, "Right Hip", "Motor6D")
  763. rightHip = rightHip or fakemotor()
  764.  
  765. --120 fps
  766.  
  767. local fps = 0
  768. local event = Instance.new("BindableEvent", c)
  769. event.Name = "120 fps"
  770. local floor = math.floor
  771. fps = 1 / fps
  772. local tf = 0
  773. local con = nil
  774. con = game:GetService("RunService").RenderStepped:Connect(function(s)
  775. if not c then
  776. con:Disconnect()
  777. return
  778. end
  779. --tf += s
  780. if tf >= fps then
  781. for i=1, floor(tf / fps) do
  782. event:Fire(c)
  783. end
  784. tf = 0
  785. end
  786. end)
  787. local event = event.Event
  788.  
  789. local hedrot = v3(0, 5, 0)
  790.  
  791. local uis = game:GetService("UserInputService")
  792. local function isPressed(key)
  793. return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
  794. end
  795.  
  796. local biggesthandle = nil
  797. for i, v in pairs(c:GetChildren()) do
  798. if v:IsA("Accessory") then
  799. local handle = gp(v, "Handle", "BasePart")
  800. if biggesthandle then
  801. if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
  802. biggesthandle = handle
  803. end
  804. else
  805. biggesthandle = gp(v, "Handle", "BasePart")
  806. end
  807. end
  808. end
  809.  
  810. if not biggesthandle then
  811. return
  812. end
  813.  
  814. local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
  815. if not handle1 then
  816. return
  817. end
  818.  
  819. handle1.Destroying:Connect(function()
  820. handle1 = nil
  821. end)
  822. biggesthandle.Destroying:Connect(function()
  823. biggesthandle = nil
  824. end)
  825.  
  826. biggesthandle:BreakJoints()
  827. biggesthandle.Anchored = true
  828.  
  829. for i, v in pairs(handle1:GetDescendants()) do
  830. if v:IsA("AlignOrientation") then
  831. v.Enabled = false
  832. end
  833. end
  834.  
  835. local mouse = lp:GetMouse()
  836. local fling = false
  837. mouse.Button1Down:Connect(function()
  838. fling = true
  839. end)
  840. mouse.Button1Up:Connect(function()
  841. fling = false
  842. end)
  843. local function doForSignal(signal, vel)
  844. spawn(function()
  845. while signal:Wait() and c and handle1 and biggesthandle do
  846. if fling and mouse.Target then
  847. biggesthandle.Position = mouse.Hit.Position
  848. end
  849. handle1.RotVelocity = vel
  850. end
  851. end)
  852. end
  853. doForSignal(stepped, v3(100, 100, 100))
  854. doForSignal(renderstepped, v3(100, 100, 100))
  855. doForSignal(heartbeat, v3(20000, 20000, 20000)) --https://web.roblox.com/catalog/63690008/Pal-Hair
  856.  
  857. local lp = game:GetService("Players").LocalPlayer
  858. local rs = game:GetService("RunService")
  859. local stepped = rs.Stepped
  860. local heartbeat = rs.Heartbeat
  861. local renderstepped = rs.RenderStepped
  862. local sg = game:GetService("StarterGui")
  863. local ws = game:GetService("Workspace")
  864. local cf = CFrame.new
  865. local v3 = Vector3.new
  866. local v3_0 = Vector3.zero
  867. local inf = math.huge
  868.  
  869. local cplayer = lp.Character
  870.  
  871. local v3 = Vector3.new
  872.  
  873. local function gp(parent, name, className)
  874. if typeof(parent) == "Instance" then
  875. for i, v in pairs(parent:GetChildren()) do
  876. if (v.Name == name) and v:IsA(className) then
  877. return v
  878. end
  879. end
  880. end
  881. return nil
  882. end
  883.  
  884. local hat2 = gp(cplayer, "InternationalFedora", "Accessory")
  885. local handle2 = gp(hat2, "Handle", "BasePart")
  886. local att2 = gp(handle2, "att1_Handle", "Attachment")
  887. att2.Parent = cplayer["Head"]
  888. att2.Position = Vector3.new(0, -0, 0)
  889. att2.Rotation = Vector3.new(90, 0, 0)
  890.  
  891. local hat2 = gp(cplayer, "Pink Hair", "Accessory")
  892. local handle2 = gp(hat2, "Handle", "BasePart")
  893. local att2 = gp(handle2, "att1_Handle", "Attachment")
  894. att2.Parent = cplayer["Left Arm"]
  895. att2.Position = Vector3.new(-0.3, -0, 1)
  896. att2.Rotation = Vector3.new(90, 0, 0)
  897.  
  898. local hat2 = gp(cplayer, "Kate Hair", "Accessory")
  899. local handle2 = gp(hat2, "Handle", "BasePart")
  900. local att2 = gp(handle2, "att1_Handle", "Attachment")
  901. att2.Parent = cplayer["Right Arm"]
  902. att2.Position = Vector3.new(-0, 0, 0)
  903. att2.Rotation = Vector3.new(90, 0, 0) --LavanderHair
  904.  
  905. local hat2 = gp(cplayer, "LavanderHair", "Accessory")
  906. local handle2 = gp(hat2, "Handle", "BasePart")
  907. local att2 = gp(handle2, "att1_Handle", "Attachment")
  908. att2.Parent = cplayer["Right Leg"]
  909. att2.Position = Vector3.new(0, 0, 0) --Robloxclassicred
  910. att2.Rotation = Vector3.new(90, 0, 0)
  911.  
  912. local hat2 = gp(cplayer, "Robloxclassicred", "Accessory")
  913. local handle2 = gp(hat2, "Handle", "BasePart")
  914. local att2 = gp(handle2, "att1_Handle", "Attachment")
  915. att2.Parent = cplayer["Left Leg"]
  916. att2.Position = Vector3.new(-0, 0, 0)
  917. att2.Rotation = Vector3.new(90, 0, 0)
  918.  
  919. local hat2 = gp(cplayer, "Lipstick_Bag_3.0", "Accessory")
  920. local handle2 = gp(hat2, "Handle", "BasePart")
  921. local att2 = gp(handle2, "att1_Handle", "Attachment")
  922. att2.Parent = cplayer["Torso"]
  923. att2.Position = Vector3.new(0, 0, 0)
  924. att2.Rotation = Vector3.new(90, 0, 0)
  925.  
  926. local hat2 = gp(cplayer, "LN_2021_Closed", "Accessory")
  927. local handle2 = gp(hat2, "Handle", "BasePart")
  928. local att2 = gp(handle2, "att1_Handle", "Attachment")
  929. att2.Parent = cplayer["Right Arm"]
  930. att2.Position = Vector3.new(0.25, -1.1, -3.35)
  931. att2.Rotation = Vector3.new(90, 0, 0)
  932.  
  933. local hat2 = gp(cplayer, "Metashard", "Accessory")
  934. local handle2 = gp(hat2, "Handle", "BasePart")
  935. local att2 = gp(handle2, "att1_Handle", "Attachment")
  936. att2.Parent = cplayer["Right Arm"]
  937. att2.Position = Vector3.new(0.25, -1.1, -5.0)
  938. att2.Rotation = Vector3.new(90, 0, 0)
  939.  
  940. local hat2 = gp(cplayer, "AppleHead", "Accessory")
  941. local handle2 = gp(hat2, "Handle", "BasePart")
  942. local att2 = gp(handle2, "att1_Handle", "Attachment")
  943. att2.Parent = cplayer["Right Arm"]
  944. att2.Position = Vector3.new(0.25, -1.1, -1.25)
  945. att2.Rotation = Vector3.new(90, 0, 0)
  946.  
  947.  
  948.  
  949.  
  950. local script = game:GetObjects("rbxassetid://5460271377")[1]
  951.  
  952. local Player = game.Players.LocalPlayer
  953. local lplr = Player
  954. Mouse = game.Players.LocalPlayer:GetMouse()
  955. Character = Player.Character
  956. Humanoid = Character.Humanoid
  957. RootPart = Character["HumanoidRootPart"]
  958. Torso = Character["Torso"]
  959. Head = Character["Head"]
  960. RightArm = Character["Right Arm"]
  961. LeftArm = Character["Left Arm"]
  962. RightLeg = Character["Right Leg"]
  963. LeftLeg = Character["Left Leg"]
  964. RootJoint = RootPart["RootJoint"]
  965. Neck = Torso["Neck"]
  966. RightShoulder = Torso["Right Shoulder"]
  967. LeftShoulder = Torso["Left Shoulder"]
  968. RightHip = Torso["Right Hip"]
  969. LeftHip = Torso["Left Hip"]
  970. local sick = Instance.new("Sound",Torso)
  971. sick:Play()
  972.  
  973. local muting=false
  974. IT = Instance.new
  975. CF = CFrame.new
  976. VT = Vector3.new
  977. RAD = math.rad
  978. C3 = Color3.new
  979. UD2 = UDim2.new
  980. BRICKC = BrickColor.new
  981. ANGLES = CFrame.Angles
  982. EULER = CFrame.fromEulerAnglesXYZ
  983. COS = math.cos
  984. ACOS = math.acos
  985. SIN = math.sin
  986. ASIN = math.asin
  987. ABS = math.abs
  988. MRANDOM = math.random
  989. FLOOR = math.floor
  990.  
  991. local function weldBetween(a, b)
  992. local weldd = Instance.new("ManualWeld")
  993. weldd.Part0 = a
  994. weldd.Part1 = b
  995. weldd.C0 = CFrame.new()
  996. weldd.C1 = b.CFrame:inverse() * a.CFrame
  997. weldd.Parent = a
  998. return weldd
  999. end
  1000.  
  1001. --//=================================\\
  1002. --|| USEFUL VALUES
  1003. --\\=================================//
  1004.  
  1005. local Animation_Speed = 3
  1006. local Frame_Speed = 1 / 80 -- (1 / 30) OR (1 / 60)
  1007. local Speed = 13
  1008. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1009. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1010. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1011. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1012. local ANIM = "Idle"
  1013. local ATTACK = false
  1014. local COMBO = 1
  1015. local Rooted = false
  1016. local SINE = 0
  1017. local KEYHOLD = false
  1018. local CHANGE = 2 / Animation_Speed
  1019.  
  1020. local ROBLOXIDLEANIMATION = IT("Animation")
  1021. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1022. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1023. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1024. local Effects = IT("Folder", Character)
  1025. Effects.Name = "Effects"
  1026. local ANIMATOR = Humanoid.Animator
  1027. local ANIMATE = Character.Animate
  1028. local SIZE = 1
  1029. local TRANSITIONS = false
  1030. local FULL = false
  1031. local MODE = "Malediction"
  1032. local PITCH = 0.9
  1033. local VOLUME = 1
  1034. local FACE = 2801767831
  1035. local MAINRUINCOLOR = BrickColor.new("Fossil")
  1036. local SECONDRUINCOLOR = BrickColor.new("Fossil")
  1037. --//=================================\\
  1038. --\\=================================//
  1039.  
  1040.  
  1041. --//=================================\\
  1042. --\\=================================//
  1043.  
  1044.  
  1045. function swait(NUMBER)
  1046. if NUMBER == 0 or NUMBER == nil then
  1047. game:GetService("RunService").RenderStepped:wait()
  1048. else
  1049. for i = 1, NUMBER do
  1050. game:GetService("RunService").RenderStepped:wait()
  1051. end
  1052. end
  1053. end
  1054.  
  1055. function Swait(NUMBER)
  1056. if NUMBER == 0 or NUMBER == nil then
  1057. game:GetService("RunService").RenderStepped:wait()
  1058. else
  1059. for i = 1, NUMBER do
  1060. game:GetService("RunService").RenderStepped:wait()
  1061. end
  1062. end
  1063. end
  1064. --//=================================\\
  1065. --// WINGY STUFF
  1066. --\\=================================//
  1067.  
  1068. function RemoveOutlines(part)
  1069. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1070. end
  1071.  
  1072. local Create = function(ty) return function(data) local obj = Instance.new(ty) for k , v in pairs(data) do if type(k) == 'number' then v.Parent = obj else obj[k] = v end end return obj end end
  1073.  
  1074. CFuncs = {
  1075. ["Part"] = {
  1076. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1077. local Part = Create("Part"){
  1078. Parent = Parent,
  1079. Reflectance = Reflectance,
  1080. Transparency = Transparency,
  1081. CanCollide = false,
  1082. Locked = true,
  1083. BrickColor = BrickColor.new(tostring(BColor)),
  1084. Name = Name,
  1085. Size = Size,
  1086. Material = Material,
  1087. }
  1088. RemoveOutlines(Part)
  1089. return Part
  1090. end;
  1091. };
  1092.  
  1093. ["Mesh"] = {
  1094. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1095. local Msh = Create(Mesh){
  1096. Parent = Part,
  1097. Offset = OffSet,
  1098. Scale = Scale,
  1099. }
  1100. if Mesh == "SpecialMesh" then
  1101. Msh.MeshType = MeshType
  1102. Msh.MeshId = MeshId
  1103. end
  1104. return Msh
  1105. end;
  1106. };
  1107.  
  1108. ["Mesh"] = {
  1109. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1110. local Msh = Create(Mesh){
  1111. Parent = Part,
  1112. Offset = OffSet,
  1113. Scale = Scale,
  1114. }
  1115. if Mesh == "SpecialMesh" then
  1116. Msh.MeshType = MeshType
  1117. Msh.MeshId = MeshId
  1118. end
  1119. return Msh
  1120. end;
  1121. };
  1122.  
  1123. ["Weld"] = {
  1124. Create = function(Parent, Part0, Part1, C0, C1)
  1125. local Weld = Create("Weld"){
  1126. Parent = Parent,
  1127. Part0 = Part0,
  1128. Part1 = Part1,
  1129. C0 = C0,
  1130. C1 = C1,
  1131. }
  1132. return Weld
  1133. end;
  1134. };
  1135.  
  1136. ["Sound"] = {
  1137. Create = function(id, par, vol, pit)
  1138. coroutine.resume(coroutine.create(function()
  1139. local S = Create("Sound"){
  1140. Volume = vol,
  1141. Name = "EffectSoundo",
  1142. Pitch = pit or 1,
  1143. SoundId = id,
  1144. Parent = par or workspace,
  1145. }
  1146. wait()
  1147. S:play()
  1148. game:GetService("Debris"):AddItem(S, 10)
  1149. end))
  1150. end;
  1151. };
  1152.  
  1153. ["TimeSound"] = {
  1154. Create = function(id, par, vol, pit, timepos)
  1155. coroutine.resume(coroutine.create(function()
  1156. local S = Create("Sound"){
  1157. Volume = vol,
  1158. Name = "EffectSoundo",
  1159. Pitch = pit or 1,
  1160. SoundId = id,
  1161. TimePosition = timepos,
  1162. Parent = par or workspace,
  1163. }
  1164. wait()
  1165. S:play()
  1166. game:GetService("Debris"):AddItem(S, 10)
  1167. end))
  1168. end;
  1169. };
  1170. ["EchoSound"] = {
  1171. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  1172. coroutine.resume(coroutine.create(function()
  1173. local Sas = Create("Sound"){
  1174. Volume = vol,
  1175. Name = "EffectSoundo",
  1176. Pitch = pit or 1,
  1177. SoundId = id,
  1178. TimePosition = timepos,
  1179. Parent = par or workspace,
  1180. }
  1181. local E = Create("EchoSoundEffect"){
  1182. Delay = echodelay,
  1183. Name = "Echo",
  1184. Feedback = fedb,
  1185. DryLevel = dryl,
  1186. Parent = Sas,
  1187. }
  1188. wait()
  1189. Sas:play()
  1190. game:GetService("Debris"):AddItem(Sas, delays)
  1191. end))
  1192. end;
  1193. };
  1194.  
  1195. ["LongSound"] = {
  1196. Create = function(id, par, vol, pit)
  1197. coroutine.resume(coroutine.create(function()
  1198. local S = Create("Sound"){
  1199. Volume = vol,
  1200. Pitch = pit or 1,
  1201. SoundId = id,
  1202. Parent = par or workspace,
  1203. }
  1204. wait()
  1205. S:play()
  1206. game:GetService("Debris"):AddItem(S, 60)
  1207. end))
  1208. end;
  1209. };
  1210.  
  1211. ["ParticleEmitter"] = {
  1212. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1213. local fp = Create("ParticleEmitter"){
  1214. Parent = Parent,
  1215. Color = ColorSequence.new(Color1, Color2),
  1216. LightEmission = LightEmission,
  1217. Size = Size,
  1218. Texture = Texture,
  1219. Transparency = Transparency,
  1220. ZOffset = ZOffset,
  1221. Acceleration = Accel,
  1222. Drag = Drag,
  1223. LockedToPart = LockedToPart,
  1224. VelocityInheritance = VelocityInheritance,
  1225. EmissionDirection = EmissionDirection,
  1226. Enabled = Enabled,
  1227. Lifetime = LifeTime,
  1228. Rate = Rate,
  1229. Rotation = Rotation,
  1230. RotSpeed = RotSpeed,
  1231. Speed = Speed,
  1232. VelocitySpread = VelocitySpread,
  1233. }
  1234. return fp
  1235. end;
  1236. };
  1237.  
  1238. CreateTemplate = {
  1239.  
  1240. };
  1241. }
  1242.  
  1243.  
  1244.  
  1245. New = function(Object, Parent, Name, Data)
  1246. local Object = Instance.new(Object)
  1247. for Index, Value in pairs(Data or {}) do
  1248. Object[Index] = Value
  1249. end
  1250. Object.Parent = Parent
  1251. Object.Name = Name
  1252. return Object
  1253. end
  1254.  
  1255. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1256. local p = Instance.new("Part")
  1257. p.TopSurface = 0
  1258. p.BottomSurface = 0
  1259. p.Parent = parent
  1260. p.Size = Vector3.new(0.1,0.1,0.1)
  1261. p.Transparency = transparency
  1262. p.Reflectance = reflectance
  1263. p.CanCollide = false
  1264. p.Locked = true
  1265. p.BrickColor = brickcolor
  1266. p.Material = material
  1267. return p
  1268. end
  1269.  
  1270. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  1271. local type = type
  1272. local rng = Instance.new("Part", Character)
  1273. rng.Anchored = true
  1274. rng.CanCollide = false
  1275. rng.FormFactor = 3
  1276. rng.Name = "Ring"
  1277. rng.Material = "Neon"
  1278. rng.Size = Vector3.new(1, 1, 1)
  1279. rng.Transparency = 0
  1280. rng.TopSurface = 0
  1281. rng.BottomSurface = 0
  1282. rng.CFrame = pos
  1283. local rngm = Instance.new("SpecialMesh", rng)
  1284. rngm.MeshType = "Sphere"
  1285. rngm.Scale = scale
  1286. local scaler2 = 1
  1287. local scaler2b = 1
  1288. local scaler2c = 1
  1289. if type == "Add" then
  1290. scaler2 = 1*value
  1291. scaler2b = 1*value2
  1292. scaler2c = 1*value3
  1293. elseif type == "Divide" then
  1294. scaler2 = 1/value
  1295. scaler2b = 1/value2
  1296. scaler2c = 1/value3
  1297. end
  1298. coroutine.resume(coroutine.create(function()
  1299. for i = 0,10/bonuspeed,0.1 do
  1300. swait()
  1301. if type == "Add" then
  1302. scaler2 = scaler2 - 0.01*value/bonuspeed
  1303. scaler2b = scaler2b - 0.01*value/bonuspeed
  1304. scaler2c = scaler2c - 0.01*value/bonuspeed
  1305. elseif type == "Divide" then
  1306. scaler2 = scaler2 - 0.01/value*bonuspeed
  1307. scaler2b = scaler2b - 0.01/value*bonuspeed
  1308. scaler2c = scaler2c - 0.01/value*bonuspeed
  1309. end
  1310. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1311. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1312. end
  1313. rng:Destroy()
  1314. end))
  1315. end
  1316.  
  1317. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1318. local type = type
  1319. local rng = Instance.new("Part", char)
  1320. rng.Anchored = true
  1321. rng.BrickColor = color
  1322. rng.CanCollide = false
  1323. rng.FormFactor = 3
  1324. rng.Name = "Ring"
  1325. rng.Material = "Neon"
  1326. rng.Size = Vector3.new(1, 1, 1)
  1327. rng.Transparency = 0
  1328. rng.TopSurface = 0
  1329. rng.BottomSurface = 0
  1330. rng.CFrame = pos
  1331. --rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1332. local rngm = Instance.new("SpecialMesh", rng)
  1333. rngm.MeshType = "Sphere"
  1334. rngm.Scale = vt(x1,y1,z1)
  1335. local scaler2 = 1
  1336. local speeder = FastSpeed
  1337. if type == "Add" then
  1338. scaler2 = 1*value
  1339. elseif type == "Divide" then
  1340. scaler2 = 1/value
  1341. end
  1342. coroutine.resume(coroutine.create(function()
  1343. for i = 0,10/bonuspeed,0.1 do
  1344. swait()
  1345. if type == "Add" then
  1346. scaler2 = scaler2 - 0.01*value/bonuspeed
  1347. elseif type == "Divide" then
  1348. scaler2 = scaler2 - 0.01/value*bonuspeed
  1349. end
  1350. speeder = speeder - 0.01*FastSpeed*bonuspeed
  1351. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1352. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1353. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  1354. end
  1355. rng:Destroy()
  1356. end))
  1357. end
  1358.  
  1359. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  1360. local type = type
  1361. local rotenable = rotatingop
  1362. local rng = Instance.new("Part", Character)
  1363. rng.Anchored = true
  1364. rng.BrickColor = color
  1365. rng.CanCollide = false
  1366. rng.FormFactor = 3
  1367. rng.Name = "Ring"
  1368. rng.Material = "Neon"
  1369. rng.Size = Vector3.new(1, 1, 1)
  1370. rng.Transparency = 0
  1371. if typeoftrans == "In" then
  1372. rng.Transparency = 1
  1373. end
  1374. rng.TopSurface = 0
  1375. rng.BottomSurface = 0
  1376. rng.CFrame = pos
  1377. local rngm = Instance.new("SpecialMesh", rng)
  1378. rngm.MeshType = "FileMesh"
  1379. if typeofshape == "Normal" then
  1380. rngm.MeshId = "rbxassetid://662586858"
  1381. elseif typeofshape == "Round" then
  1382. rngm.MeshId = "rbxassetid://662585058"
  1383. end
  1384. rngm.Scale = scale
  1385. local scaler2 = 1/10
  1386. if type == "Add" then
  1387. scaler2 = 1*value/10
  1388. elseif type == "Divide" then
  1389. scaler2 = 1/value/10
  1390. end
  1391. local randomrot = math.random(1,2)
  1392. coroutine.resume(coroutine.create(function()
  1393. for i = 0,10/bonuspeed,0.1 do
  1394. swait()
  1395. if type == "Add" then
  1396. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  1397. elseif type == "Divide" then
  1398. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  1399. end
  1400. if rotenable == true then
  1401. if randomrot == 1 then
  1402. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  1403. elseif randomrot == 2 then
  1404. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  1405. end
  1406. end
  1407. if typeoftrans == "Out" then
  1408. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1409. elseif typeoftrans == "In" then
  1410. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1411. end
  1412. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  1413. end
  1414. rng:Destroy()
  1415. end))
  1416. end
  1417.  
  1418. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  1419. local type = type
  1420. local rng = Instance.new("Part", Character)
  1421. rng.Anchored = true
  1422. rng.BrickColor = color
  1423. rng.Color = color3
  1424. rng.CanCollide = false
  1425. rng.FormFactor = 3
  1426. rng.Name = "Ring"
  1427. rng.Material = "Neon"
  1428. rng.Size = Vector3.new(1, 1, 1)
  1429. rng.Transparency = 0
  1430. rng.TopSurface = 0
  1431. rng.BottomSurface = 0
  1432. rng.CFrame = pos
  1433. local rngm = Instance.new("SpecialMesh", rng)
  1434. rngm.MeshType = "Brick"
  1435. rngm.Scale = scale
  1436. local scaler2 = 1
  1437. local scaler2b = 1
  1438. local scaler2c = 1
  1439. if type == "Add" then
  1440. scaler2 = 1*value
  1441. scaler2b = 1*value2
  1442. scaler2c = 1*value3
  1443. elseif type == "Divide" then
  1444. scaler2 = 1/value
  1445. scaler2b = 1/value2
  1446. scaler2c = 1/value3
  1447. end
  1448. coroutine.resume(coroutine.create(function()
  1449. for i = 0,10/bonuspeed,0.1 do
  1450. swait()
  1451. if type == "Add" then
  1452. scaler2 = scaler2 - 0.01*value/bonuspeed
  1453. scaler2b = scaler2b - 0.01*value/bonuspeed
  1454. scaler2c = scaler2c - 0.01*value/bonuspeed
  1455. elseif type == "Divide" then
  1456. scaler2 = scaler2 - 0.01/value*bonuspeed
  1457. scaler2b = scaler2b - 0.01/value*bonuspeed
  1458. scaler2c = scaler2c - 0.01/value*bonuspeed
  1459. end
  1460. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1461. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1462. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1463. end
  1464. rng:Destroy()
  1465. end))
  1466. end
  1467.  
  1468. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1469. if hit.Parent == nil then
  1470. return
  1471. end
  1472. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1473. for _, v in pairs(hit.Parent:children()) do
  1474. if v:IsA("Humanoid") then
  1475. h = v
  1476. end
  1477. end
  1478. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= Player.Name and hit.Parent.Parent.Name ~= Character.Name and hit.Parent.Parent.Name ~= Player.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1479. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1480. return
  1481. end
  1482. local c = Create("ObjectValue")({
  1483. Name = "creator",
  1484. Value = game:GetService("Players").LocalPlayer,
  1485. Parent = h
  1486. })
  1487. game:GetService("Debris"):AddItem(c, 0.5)
  1488. if HitSound ~= nil and HitPitch ~= nil then
  1489. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1490. end
  1491. local Damage = math.random(minim, maxim)
  1492. local blocked = false
  1493. local block = hit.Parent:findFirstChild("Block")
  1494. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1495. blocked = true
  1496. block.Value = block.Value - 1
  1497. print(block.Value)
  1498. end
  1499. if blocked == false then
  1500. local HitHealth = h.Health
  1501. --h.MaxHealth = 100 let it
  1502.  
  1503. --[[if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1504. --print("gained kill")
  1505. --dmg(h.Parent)
  1506. end
  1507. --ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), Damage, .03, Part.BrickColor.Color)
  1508. else
  1509. h.Health = h.Health - Damage / 2
  1510. --ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), Damage, .03, Part.BrickColor.Color)
  1511. end]]
  1512. if Type == "Knockdown" then
  1513. local hum = hit.Parent.Humanoid
  1514. hum.PlatformStand = true
  1515. coroutine.resume(coroutine.create(function(HHumanoid)
  1516. swait(1)
  1517. HHumanoid.PlatformStand = false
  1518. end), hum)
  1519. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1520. local bodvol = Create("BodyVelocity")({
  1521. velocity = angle * knockback,
  1522. P = 5000,
  1523. maxForce = Vector3.new(8000, 8000, 8000),
  1524. Parent = hit
  1525. })
  1526. local rl = Create("BodyAngularVelocity")({
  1527. P = 3000,
  1528. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1529. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1530. Parent = hit
  1531. })
  1532. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1533. game:GetService("Debris"):AddItem(rl, 0.5)
  1534. elseif Type == "Normal" then
  1535. local vp = Create("BodyVelocity")({
  1536. P = 500,
  1537. maxForce = Vector3.new(math.huge, 0, math.huge),
  1538. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1539. })
  1540. if knockback > 0 then
  1541. vp.Parent = hit.Parent.Head
  1542. end
  1543. game:GetService("Debris"):AddItem(vp, 0.5)
  1544. elseif Type == "Up" then
  1545. local bodyVelocity = Create("BodyVelocity")({
  1546. velocity = Vector3.new(0, 20, 0),
  1547. P = 5000,
  1548. maxForce = Vector3.new(8000, 8000, 8000),
  1549. Parent = hit
  1550. })
  1551. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1552. local bodyVelocity = Create("BodyVelocity")({
  1553. velocity = Vector3.new(0, 20, 0),
  1554. P = 5000,
  1555. maxForce = Vector3.new(8000, 8000, 8000),
  1556. Parent = hit
  1557. })
  1558. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1559. elseif Type == "Leech" then
  1560. local hum = hit.Parent.Humanoid
  1561. if hum ~= nil then
  1562. for i = 0, 2 do
  1563. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1564. end
  1565. end
  1566. elseif Type == "UpKnock" then
  1567. local hum = hit.Parent.Humanoid
  1568. hum.PlatformStand = true
  1569. if hum ~= nil then
  1570. hitr = true
  1571. end
  1572. coroutine.resume(coroutine.create(function(HHumanoid)
  1573. swait(5)
  1574. HHumanoid.PlatformStand = false
  1575. hitr = false
  1576. end), hum)
  1577. local bodyVelocity = Create("BodyVelocity")({
  1578. velocity = Vector3.new(0, 20, 0),
  1579. P = 5000,
  1580. maxForce = Vector3.new(8000, 8000, 8000),
  1581. Parent = hit
  1582. })
  1583. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1584. local bodyVelocity = Create("BodyVelocity")({
  1585. velocity = Vector3.new(0, 20, 0),
  1586. P = 5000,
  1587. maxForce = Vector3.new(8000, 8000, 8000),
  1588. Parent = hit
  1589. })
  1590. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1591. elseif Type == "Snare" then
  1592. local bp = Create("BodyPosition")({
  1593. P = 2000,
  1594. D = 100,
  1595. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1596. position = hit.Parent.Torso.Position,
  1597. Parent = hit.Parent.Torso
  1598. })
  1599. game:GetService("Debris"):AddItem(bp, 1)
  1600. elseif Type == "Slashnare" then
  1601. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1602. for i = 1, math.random(4, 5) do
  1603. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1604. end
  1605. local bp = Create("BodyPosition")({
  1606. P = 2000,
  1607. D = 100,
  1608. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1609. position = hit.Parent.Torso.Position,
  1610. Parent = hit.Parent.Torso
  1611. })
  1612. game:GetService("Debris"):AddItem(bp, 1)
  1613. elseif Type == "Burn" then
  1614.  
  1615. local humss = hit.Parent:findFirstChildOfClass("Humanoid")
  1616. --[[humss.PlatformStand = true
  1617. coroutine.resume(coroutine.create(function(HHumanoid)
  1618. swait(60)
  1619. HHumanoid.PlatformStand = false
  1620. end), humss)
  1621. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1622. local bodvol = Create("BodyVelocity")({
  1623. velocity = angle * knockback/25,
  1624. P = 5000,
  1625. maxForce = Vector3.new(8000, 8000, 8000),
  1626. Parent = hit
  1627. })
  1628. local rl = Create("BodyAngularVelocity")({
  1629. P = 3000,
  1630. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1631. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1632. Parent = hit
  1633. })
  1634. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1635. game:GetService("Debris"):AddItem(rl, 0.5)
  1636. ]]
  1637. coroutine.resume(coroutine.create(function()
  1638. if hit.Parent:findFirstChild("Torso")then
  1639. local hitoor=hit.Parent:findFirstChild("Torso")
  1640. local BURNBABYBURN = Create("Sound"){
  1641. Volume = 1,
  1642. Name = "asdawdwadadw",
  1643. Pitch = 1.2,
  1644. Looped = true,
  1645. SoundId = "rbxassetid://1601946639",
  1646. Parent = hitoor,
  1647. }
  1648. BURNBABYBURN:play()
  1649. for i=1, 2*knockback do
  1650. swait(5)
  1651. end
  1652. BURNBABYBURN:Remove()
  1653. end
  1654. end))
  1655.  
  1656. elseif Type == "Spike" then
  1657. -- CreateBigIceSword(hit.Parent.Torso.CFrame)
  1658. local bp = Create("BodyPosition")({
  1659. P = 2000,
  1660. D = 100,
  1661. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1662. position = hit.Parent.Torso.Position,
  1663. Parent = hit.Parent.Torso
  1664. })
  1665. game:GetService("Debris"):AddItem(bp, 1)
  1666. elseif Type == "Freeze" then
  1667. local BodPos = Create("BodyPosition")({
  1668. P = 50000,
  1669. D = 1000,
  1670. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1671. position = hit.Parent.Torso.Position,
  1672. Parent = hit.Parent.Torso
  1673. })
  1674. local BodGy = Create("BodyGyro")({
  1675. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1676. P = 20000,
  1677. Parent = hit.Parent.Torso,
  1678. cframe = hit.Parent.Torso.CFrame
  1679. })
  1680. hit.Parent.Torso.Anchored = true
  1681. coroutine.resume(coroutine.create(function(Part)
  1682. swait(1.5)
  1683. Part.Anchored = false
  1684. end), hit.Parent.Torso)
  1685. game:GetService("Debris"):AddItem(BodPos, 3)
  1686. game:GetService("Debris"):AddItem(BodGy, 3)
  1687. end
  1688. local debounce = Create("BoolValue")({
  1689. Name = "DebounceHit",
  1690. Parent = hit.Parent,
  1691. Value = true
  1692. })
  1693. game:GetService("Debris"):AddItem(debounce, Delay)
  1694. c = Instance.new("ObjectValue")
  1695. c.Name = "creator"
  1696. c.Value = Player
  1697. c.Parent = h
  1698. game:GetService("Debris"):AddItem(c, 0.5)
  1699. end
  1700. end
  1701. end
  1702.  
  1703. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1704. for _, c in pairs(workspace:children()) do
  1705. local hum = c:findFirstChildOfClass("Humanoid")
  1706. if hum ~= nil then
  1707. local head = c:findFirstChild("Head")
  1708. if head ~= nil then
  1709. local targ = head.Position - Part.Position
  1710. local mag = targ.magnitude
  1711. if magni >= mag and c.Name ~= Player.Name and c.Name ~= Character.Name then
  1712. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1713. end
  1714. end
  1715. end
  1716. end
  1717. end
  1718.  
  1719. function CreateMesh(parent,meshtype,x1,y1,z1)
  1720. local mesh = Instance.new("SpecialMesh",parent)
  1721. mesh.MeshType = meshtype
  1722. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1723. return mesh
  1724. end
  1725.  
  1726. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1727. local mesh = Instance.new("SpecialMesh",parent)
  1728. mesh.MeshType = "FileMesh"
  1729. mesh.MeshId = meshid
  1730. mesh.Scale = Vector3.new(x1,y1,z1)
  1731. return mesh
  1732. end
  1733.  
  1734.  
  1735. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1736. local mesh = Instance.new("SpecialMesh",parent)
  1737. mesh.MeshType = "FileMesh"
  1738. mesh.MeshId = meshid
  1739. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1740. mesh.Scale = Vector3.new(x1,y1,z1)
  1741. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1742. return mesh
  1743. end
  1744.  
  1745. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1746. local weld = Instance.new("Weld")
  1747. weld.Parent = parent
  1748. weld.Part0 = part0
  1749. weld.Part1 = part1
  1750. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1751. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1752. return weld
  1753. end
  1754.  
  1755.  
  1756. local m = Instance.new("Model",Character)
  1757. --------------
  1758. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1759. CreateWeld(sorb,RightArm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1760. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1761. CreateWeld(sorb2,LeftArm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1762.  
  1763. --//=================================\\
  1764. --|| SOME FUNCTIONS
  1765. --\\=================================//
  1766.  
  1767.  
  1768.  
  1769. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1770. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1771. end
  1772.  
  1773. function PositiveAngle(NUMBER)
  1774. if NUMBER >= 0 then
  1775. NUMBER = 0
  1776. end
  1777. return NUMBER
  1778. end
  1779.  
  1780. function NegativeAngle(NUMBER)
  1781. if NUMBER <= 0 then
  1782. NUMBER = 0
  1783. end
  1784. return NUMBER
  1785. end
  1786.  
  1787.  
  1788. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1789. local NEWMESH = IT(MESH)
  1790. if MESH == "SpecialMesh" then
  1791. NEWMESH.MeshType = MESHTYPE
  1792. if MESHID ~= "nil" and MESHID ~= "" then
  1793. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1794. end
  1795. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1796. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1797. end
  1798. end
  1799. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1800. NEWMESH.Scale = SCALE
  1801. NEWMESH.Parent = PARENT
  1802. return NEWMESH
  1803. end
  1804.  
  1805. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1806. local NEWPART = IT("Part")
  1807. NEWPART.formFactor = FORMFACTOR
  1808. NEWPART.Reflectance = REFLECTANCE
  1809. NEWPART.Transparency = TRANSPARENCY
  1810. NEWPART.CanCollide = false
  1811. NEWPART.Locked = true
  1812. NEWPART.Anchored = true
  1813. if ANCHOR == false then
  1814. NEWPART.Anchored = false
  1815. end
  1816. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1817. NEWPART.Name = NAME
  1818. NEWPART.Size = SIZE
  1819. NEWPART.Position = Torso.Position
  1820. NEWPART.Material = MATERIAL
  1821. NEWPART:BreakJoints()
  1822. NEWPART.Parent = PARENT
  1823. return NEWPART
  1824. end
  1825.  
  1826. local function weldBetween(a, b)
  1827. local weldd = Instance.new("ManualWeld")
  1828. weldd.Part0 = a
  1829. weldd.Part1 = b
  1830. weldd.C0 = CFrame.new()
  1831. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1832. weldd.Parent = a
  1833. return weldd
  1834. end
  1835.  
  1836.  
  1837. function QuaternionFromCFrame(cf)
  1838. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1839. local trace = m00 + m11 + m22
  1840. if trace > 0 then
  1841. local s = math.sqrt(1 + trace)
  1842. local recip = 0.5 / s
  1843. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1844. else
  1845. local i = 0
  1846. if m11 > m00 then
  1847. i = 1
  1848. end
  1849. if m22 > (i == 0 and m00 or m11) then
  1850. i = 2
  1851. end
  1852. if i == 0 then
  1853. local s = math.sqrt(m00 - m11 - m22 + 1)
  1854. local recip = 0.5 / s
  1855. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1856. elseif i == 1 then
  1857. local s = math.sqrt(m11 - m22 - m00 + 1)
  1858. local recip = 0.5 / s
  1859. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1860. elseif i == 2 then
  1861. local s = math.sqrt(m22 - m00 - m11 + 1)
  1862. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1863. end
  1864. end
  1865. end
  1866.  
  1867. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1868. local xs, ys, zs = x + x, y + y, z + z
  1869. local wx, wy, wz = w * xs, w * ys, w * zs
  1870. local xx = x * xs
  1871. local xy = x * ys
  1872. local xz = x * zs
  1873. local yy = y * ys
  1874. local yz = y * zs
  1875. local zz = z * zs
  1876. 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))
  1877. end
  1878.  
  1879. function QuaternionSlerp(a, b, t)
  1880. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1881. local startInterp, finishInterp;
  1882. if cosTheta >= 0.0001 then
  1883. if (1 - cosTheta) > 0.0001 then
  1884. local theta = ACOS(cosTheta)
  1885. local invSinTheta = 1 / SIN(theta)
  1886. startInterp = SIN((1 - t) * theta) * invSinTheta
  1887. finishInterp = SIN(t * theta) * invSinTheta
  1888. else
  1889. startInterp = 1 - t
  1890. finishInterp = t
  1891. end
  1892. else
  1893. if (1 + cosTheta) > 0.0001 then
  1894. local theta = ACOS(-cosTheta)
  1895. local invSinTheta = 1 / SIN(theta)
  1896. startInterp = SIN((t - 1) * theta) * invSinTheta
  1897. finishInterp = SIN(t * theta) * invSinTheta
  1898. else
  1899. startInterp = t - 1
  1900. finishInterp = t
  1901. end
  1902. end
  1903. 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
  1904. end
  1905.  
  1906. function Clerp(a, b, t)
  1907. local qa = {QuaternionFromCFrame(a)}
  1908. local qb = {QuaternionFromCFrame(b)}
  1909. local ax, ay, az = a.x, a.y, a.z
  1910. local bx, by, bz = b.x, b.y, b.z
  1911. local _t = 1 - t
  1912. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1913. end
  1914.  
  1915. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1916. local frame = IT("Frame")
  1917. frame.BackgroundTransparency = TRANSPARENCY
  1918. frame.BorderSizePixel = BORDERSIZEPIXEL
  1919. frame.Position = POSITION
  1920. frame.Size = SIZE
  1921. frame.BackgroundColor3 = COLOR
  1922. frame.BorderColor3 = BORDERCOLOR
  1923. frame.Name = NAME
  1924. frame.Parent = PARENT
  1925. return frame
  1926. end
  1927.  
  1928. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1929. local label = IT("TextLabel")
  1930. label.BackgroundTransparency = 1
  1931. label.Size = UD2(1, 0, 1, 0)
  1932. label.Position = UD2(0, 0, 0, 0)
  1933. label.TextColor3 = TEXTCOLOR
  1934. label.TextStrokeTransparency = STROKETRANSPARENCY
  1935. label.TextTransparency = TRANSPARENCY
  1936. label.FontSize = TEXTFONTSIZE
  1937. label.Font = TEXTFONT
  1938. label.BorderSizePixel = BORDERSIZEPIXEL
  1939. label.TextScaled = false
  1940. label.Text = TEXT
  1941. label.Name = NAME
  1942. label.Parent = PARENT
  1943. return label
  1944. end
  1945.  
  1946. function NoOutlines(PART)
  1947. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1948. end
  1949.  
  1950. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1951. local NEWWELD = IT(TYPE)
  1952. NEWWELD.Part0 = PART0
  1953. NEWWELD.Part1 = PART1
  1954. NEWWELD.C0 = C0
  1955. NEWWELD.C1 = C1
  1956. NEWWELD.Parent = PARENT
  1957. return NEWWELD
  1958. end
  1959.  
  1960. local S = IT("Sound")
  1961. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1962. local NEWSOUND = nil
  1963. coroutine.resume(coroutine.create(function()
  1964. NEWSOUND = S:Clone()
  1965. NEWSOUND.Parent = PARENT
  1966. NEWSOUND.Volume = VOLUME
  1967. NEWSOUND.Pitch = PITCH
  1968. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1969. NEWSOUND:play()
  1970. if DOESLOOP == true then
  1971. NEWSOUND.Looped = true
  1972. else
  1973. repeat wait(1) until NEWSOUND.Playing == false
  1974. NEWSOUND:remove()
  1975. end
  1976. end))
  1977. return NEWSOUND
  1978. end
  1979.  
  1980. function CreateSoundWithEmitter(ID, PARENT, VOLUME, PITCH, EMITTERSIZE, DOESLOOP)
  1981. local NEWSOUND = nil
  1982. coroutine.resume(coroutine.create(function()
  1983. NEWSOUND = S:Clone()
  1984. NEWSOUND.Parent = PARENT
  1985. NEWSOUND.Volume = VOLUME
  1986. NEWSOUND.Pitch = PITCH
  1987. if EMITTERSIZE then
  1988. NEWSOUND.EmitterSize = EMITTERSIZE
  1989. else
  1990. NEWSOUND.EmitterSize = 5
  1991. end
  1992. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1993. NEWSOUND:play()
  1994. if DOESLOOP == true then
  1995. NEWSOUND.Looped = true
  1996. else
  1997. repeat wait(1) until NEWSOUND.Playing == false
  1998. NEWSOUND:remove()
  1999. end
  2000. end))
  2001. return NEWSOUND
  2002. end
  2003.  
  2004. function CFrameFromTopBack(at, top, back)
  2005. local right = top:Cross(back)
  2006. 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)
  2007. end
  2008.  
  2009. function WACKYEFFECT(Table)
  2010. local TYPE = (Table.EffectType or "Sphere")
  2011. local SIZE = (Table.Size or VT(1,1,1))
  2012. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  2013. local TRANSPARENCY = (Table.Transparency or 0)
  2014. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  2015. local CFRAME = (Table.CFrame or Torso.CFrame)
  2016. local MOVEDIRECTION = (Table.MoveToPos or nil)
  2017. local ROTATION1 = (Table.RotationX or 0)
  2018. local ROTATION2 = (Table.RotationY or 0)
  2019. local ROTATION3 = (Table.RotationZ or 0)
  2020. local MATERIAL = (Table.Material or "Neon")
  2021. local COLOR = (Table.Color or C3(1,1,1))
  2022. local WAITTOTWEEN = (Table.WaitToTween or 0)
  2023. local TIME = (Table.Time or 45)
  2024. local SOUNDID = (Table.SoundID or nil)
  2025. local SOUNDPITCH = (Table.SoundPitch or nil)
  2026. local SOUNDVOLUME = (Table.SoundVolume or nil)
  2027. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  2028. local BOOMERANG = (Table.Boomerang or 0)
  2029. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  2030. coroutine.resume(coroutine.create(function()
  2031. local PLAYSSOUND = false
  2032. local SOUND = nil
  2033. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  2034. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  2035. PLAYSSOUND = true
  2036. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  2037. end
  2038. EFFECT.Color = COLOR
  2039. local MSH = nil
  2040. if TYPE == "Sphere" then
  2041. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  2042. elseif TYPE == "Block" or TYPE == "Box" then
  2043. MSH = IT("BlockMesh",EFFECT)
  2044. MSH.Scale = SIZE
  2045. elseif TYPE == "Cylinder" then
  2046. MSH = CreateMesh("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,-SIZE.X/8))
  2047. elseif TYPE == "Wave" then
  2048. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  2049. elseif TYPE == "Ring" then
  2050. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  2051. elseif TYPE == "Slash" then
  2052. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2053. elseif TYPE == "Round Slash" then
  2054. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2055. elseif TYPE == "Swirl" then
  2056. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2057. elseif TYPE == "Swirl2" then
  2058. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  2059. elseif TYPE == "Skull" then
  2060. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  2061. elseif TYPE == "Crystal" then
  2062. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  2063. elseif TYPE == "Star" then
  2064. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2546401234", "", SIZE, VT(0,0,0))
  2065. end
  2066. if MSH ~= nil then
  2067. local BOOMR1 = 1+BOOMERANG/50
  2068. local BOOMR2 = 1+SIZEBOOMERANG/50
  2069. local MOVESPEED = nil
  2070. if MOVEDIRECTION ~= nil then
  2071. if USEBOOMERANGMATH == true then
  2072. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  2073. else
  2074. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  2075. end
  2076. end
  2077. local GROWTH = nil
  2078. if USEBOOMERANGMATH == true then
  2079. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  2080. else
  2081. GROWTH = (SIZE - ENDSIZE)
  2082. end
  2083. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  2084. if TYPE == "Block" then
  2085. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2086. else
  2087. EFFECT.CFrame = CFRAME
  2088. end
  2089. if USEBOOMERANGMATH == true then
  2090. for LOOP = 1, TIME+1 do
  2091. Swait()
  2092. 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
  2093. if TYPE == "Wave" then
  2094. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  2095. end
  2096. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2097. if TYPE == "Block" then
  2098. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2099. else
  2100. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  2101. end
  2102. if MOVEDIRECTION ~= nil then
  2103. local ORI = EFFECT.Orientation
  2104. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  2105. EFFECT.Orientation = ORI
  2106. end
  2107. end
  2108. else
  2109. for LOOP = 1, TIME+1 do
  2110. Swait()
  2111. MSH.Scale = MSH.Scale - GROWTH/TIME
  2112. if TYPE == "Wave" then
  2113. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  2114. end
  2115. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2116. if TYPE == "Block" then
  2117. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2118. end
  2119. if MOVEDIRECTION ~= nil then
  2120. local ORI = EFFECT.Orientation
  2121. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  2122. EFFECT.Orientation = ORI
  2123. end
  2124. end
  2125. end
  2126. EFFECT.Transparency = 1
  2127. if PLAYSSOUND == false then
  2128. EFFECT:remove()
  2129. else
  2130. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  2131. EFFECT:remove()
  2132. end
  2133. else
  2134. if PLAYSSOUND == false then
  2135. EFFECT:remove()
  2136. else
  2137. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  2138. EFFECT:remove()
  2139. end
  2140. end
  2141. end))
  2142. end
  2143.  
  2144. function MakeForm(PART,TYPE)
  2145. if TYPE == "Cyl" then
  2146. local MSH = IT("CylinderMesh",PART)
  2147. elseif TYPE == "Ball" then
  2148. local MSH = IT("SpecialMesh",PART)
  2149. MSH.MeshType = "Sphere"
  2150. elseif TYPE == "Wedge" then
  2151. local MSH = IT("SpecialMesh",PART)
  2152. MSH.MeshType = "Wedge"
  2153. end
  2154. end
  2155.  
  2156. Debris = game:GetService("Debris")
  2157.  
  2158. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  2159. local DIRECTION = CF(StartPos,EndPos).lookVector
  2160. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  2161. end
  2162.  
  2163. local Beams = New("Model",Effects,"Beams",{})
  2164. local fail = false
  2165. BeamRing = New("Model",nil,"BeamRing",{})
  2166. local Quantumn = New("Model",nil,"Quantumn",{})
  2167. local EffectHolder = New("Part",Quantumn,"EffectHolder",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.05, 0.05, 0.05),CFrame = CFrame.new(0, 5.5000329, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,})
  2168. EffectHolder.CanCollide = false
  2169. Attachment01 = New("Attachment",EffectHolder,"Attachment01",{CFrame = CFrame.new(1.80000019, -1.34110451e-07, -1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2170. Attachment02 = New("Attachment",EffectHolder,"Attachment02",{CFrame = CFrame.new(-1.7999866, 4.47034836e-08, 1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2171. Attachment03 = New("Attachment",EffectHolder,"Attachment03",{CFrame = CFrame.new(-1.80000007, -1.34110451e-07, -1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2172. Attachment04 = New("Attachment",EffectHolder,"Attachment04",{CFrame = CFrame.new(1.80001354, 4.47034836e-08, 1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2173. Attachment05 = New("Attachment",EffectHolder,"Attachment05",{CFrame = CFrame.new(2.60000038, -1.34110451e-07, -2.98023224e-08, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2174. Attachment06 = New("Attachment",EffectHolder,"Attachment06",{CFrame = CFrame.new(-2.59998679, 4.47034836e-08, 1.49011612e-08, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2175. Attachment07 = New("Attachment",EffectHolder,"Attachment07",{CFrame = CFrame.new(1.49011612e-08, -1.34110451e-07, -2.60000038, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2176. Attachment08 = New("Attachment",EffectHolder,"Attachment08",{CFrame = CFrame.new(1.34855509e-05, 4.47034836e-08, 2.60000038, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
  2177. local Beams = New("Model",EffectHolder,"Beams",{})
  2178. Beaamstart2 = New("Part",BeamRing,"BeamHolder",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(77.3999939, 5.40723991, 119.900009, 0, 0, -1, 0, -1, 0, -1, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  2179. Attachment0 = New("Attachment",Beaamstart2,"Attachment0",{CFrame = CFrame.new(0, 0, .75, 1, 0, 0, 0, -1, 0, 0, 0, -1),})
  2180. Attachment1 = New("Attachment",Beaamstart2,"Attachment1",{CFrame = CFrame.new(0, 0, -.75, 1, 0, 0, 0, -1, 0, 0, 0, -1),})
  2181. Beaamstart2.CanCollide = false
  2182. local Beam2 = New("Beam",Beams,"Beam",{Texture = "rbxassetid://457102813",})
  2183. Beam2.Parent = BeamRing
  2184. Beam2.Width0 = 1.5
  2185. Beam2.Width1 = 1.5
  2186. Beam2.FaceCamera = false
  2187.  
  2188. Beam2.Transparency = NumberSequence.new(0,0)
  2189. Beam2.TextureLength = .05
  2190. Beam2.LightEmission = 1
  2191. Beam2.CurveSize0 = 1
  2192. Beam2.CurveSize1 = -1
  2193. Beam2.Attachment0 = Beaamstart2.Attachment0
  2194. Beam2.Attachment1 = Beaamstart2.Attachment1
  2195. local Beam2 = New("Beam",Beams,"Beam",{Texture = "rbxassetid://457102813",})
  2196. Beam2.Parent = BeamRing
  2197. Beam2.Width0 = 1.5
  2198. Beam2.Width1 = 1.5
  2199. Beam2.FaceCamera = false
  2200.  
  2201. Beam2.Transparency = NumberSequence.new(0,0)
  2202. Beam2.TextureLength = .05
  2203. Beam2.LightEmission = 1
  2204. Beam2.CurveSize0 = -1
  2205. Beam2.CurveSize1 = 1
  2206. Beam2.Attachment0 = Beaamstart2.Attachment0
  2207. Beam2.Attachment1 = Beaamstart2.Attachment1
  2208. Beam2.TextureSpeed = -1
  2209. local badcombo = {{1,7}, {1,5}, {2,8}, {2,6}, {3,7}, {3,6}, {4,5}, {4,8}}
  2210. function scan(scannum1,scannum2)
  2211. for i = 1,#badcombo do
  2212. local comb = badcombo[i]
  2213. if scannum1 == comb[1] and scannum2 == comb[2]then
  2214. fail = true
  2215. end
  2216. if scannum1 == comb[2] and scannum2 == comb[1]then
  2217. fail = true
  2218. end
  2219. --swait()
  2220. end
  2221. end
  2222.  
  2223. function GatherAllInstances(Parent,ig)
  2224. local Instances = {}
  2225. local Ignore=nil
  2226. if ig ~= nil then
  2227. Ignore = ig
  2228. end
  2229.  
  2230. local function GatherInstances(Parent,Ignore)
  2231. for i, v in pairs(Parent:GetChildren()) do
  2232.  
  2233. if v ~= Ignore then
  2234. GatherInstances(v,Ignore)
  2235. table.insert(Instances, v) end
  2236. end
  2237. end
  2238. GatherInstances(Parent,Ignore)
  2239. return Instances
  2240. end
  2241. coroutine.resume(coroutine.create(function()
  2242. wait(1)
  2243. for i, v2 in pairs(GatherAllInstances(Character)) do
  2244. if v2:IsA("BasePart") then
  2245. v2.Locked = true
  2246. end end
  2247. end))
  2248.  
  2249. local AttachmentSelect = function(BeamSelect,Value1,Value2)
  2250. local Select1 = 0
  2251. local Select2 = 0
  2252. scan(Value1,Value2)
  2253. if fail == false then
  2254. if Value1 == 1 then
  2255. Select1=Attachment01
  2256. elseif Value1 == 2 then
  2257. Select1=Attachment02
  2258. elseif Value1 == 3 then
  2259. Select1=Attachment03
  2260. elseif Value1 == 4 then
  2261. Select1=Attachment04
  2262. elseif Value1 == 5 then
  2263. Select1=Attachment05
  2264. elseif Value1 == 6 then
  2265. Select1=Attachment06
  2266. elseif Value1 == 7 then
  2267. Select1=Attachment07
  2268. elseif Value1 == 8 then
  2269. Select1=Attachment08
  2270. elseif Value1 == 0 or 9 then
  2271. Select1=nil
  2272. end
  2273. if Value2 == 1 then
  2274. Select2=Attachment01
  2275. elseif Value2 == 2 then
  2276. Select2=Attachment02
  2277. elseif Value2 == 3 then
  2278. Select2=Attachment03
  2279. elseif Value2 == 4 then
  2280. Select2=Attachment04
  2281. elseif Value2 == 5 then
  2282. Select2=Attachment05
  2283. elseif Value2 == 6 then
  2284. Select2=Attachment06
  2285. elseif Value2 == 7 then
  2286. Select2=Attachment07
  2287. elseif Value2 == 8 then
  2288. Select2=Attachment08
  2289. elseif Value2 == 0 or 9 then
  2290. Select2=nil
  2291. end
  2292. BeamSelect.Attachment0 = Select1
  2293. BeamSelect.Attachment1 = Select2
  2294. else
  2295. fail = false
  2296. BeamSelect:Destroy()
  2297. end
  2298. end
  2299.  
  2300. local Glow1 = Color3.new(255/255, 184/255, 56/255)
  2301. local Glow2 = Color3.new(1,0,0)
  2302. for i = 1,8 do
  2303. swait()
  2304. for v = 1,8 do
  2305. --swait()
  2306. if i ~= v then
  2307. swait()
  2308. local Beam = New("Beam",Beams,"Beam",{Texture = "rbxassetid://1191605952",})
  2309. Beam.Parent = Beams
  2310. Beam.Width0 = .1
  2311. Beam.Width1 = .1
  2312. Beam.FaceCamera = true
  2313. Beam.Color = ColorSequence.new(Glow1,Glow2)
  2314. Beam.Transparency = NumberSequence.new(0,0)
  2315. Beam.TextureLength = 1
  2316. Beam.LightEmission = 1
  2317. AttachmentSelect(Beam,i,v)
  2318. end
  2319. end
  2320. end
  2321.  
  2322. function MakeBeamWaveEffect(QPlayer,BeamColor,CFPos,QLifeTime,NumberV1,NumberV2,Scale1,T1,BSize,MoveCF)
  2323. QStart = 1.6
  2324. coroutine.resume(coroutine.create(function()
  2325. local CQuan = BeamRing:Clone()
  2326. CQuan.Parent = QPlayer
  2327. game:GetService("Debris"):AddItem(CQuan, 20)
  2328. CQuan.BeamHolder.CFrame = CFrame.new(CFPos)
  2329.  
  2330. for i, v in pairs(GatherAllInstances(CQuan)) do
  2331. coroutine.resume(coroutine.create(function()
  2332.  
  2333.  
  2334. coroutine.resume(coroutine.create(function()
  2335. if v:isA("Beam") then
  2336.  
  2337.  
  2338. v.Color = ColorSequence.new(BeamColor,BeamColor)
  2339.  
  2340.  
  2341.  
  2342. coroutine.resume(coroutine.create(function()
  2343. local CS0S=v.CurveSize0*Scale1
  2344. local CS1S=v.CurveSize1*Scale1
  2345. for i = QStart + NumberV1,QStart + (QStart*QLifeTime),NumberV2 do swait()
  2346. v.CurveSize0=CS0S* COS(i)
  2347. v.CurveSize1=CS1S* COS(i)
  2348. end
  2349. end))
  2350.  
  2351.  
  2352. for i = 0,QStart*QLifeTime,NumberV2/(1+T1) do swait()
  2353.  
  2354.  
  2355. v.Transparency = NumberSequence.new(i/(QStart*QLifeTime),i/(QStart*QLifeTime))
  2356.  
  2357.  
  2358.  
  2359.  
  2360. v.Width0 = (1 - i/(QStart*QLifeTime))*BSize
  2361. v.Width1 = (1 - i/(QStart*QLifeTime))*BSize
  2362.  
  2363.  
  2364. end
  2365. v.Transparency = NumberSequence.new(1,1)
  2366. wait()
  2367. CQuan:Destroy()
  2368. end
  2369. end))
  2370.  
  2371. coroutine.resume(coroutine.create(function()
  2372. if v:isA("Attachment") then
  2373. local QX = v.CFrame.X*Scale1
  2374. local QY = v.CFrame.Y*Scale1
  2375. local QZ = v.CFrame.Z*Scale1
  2376. v.CFrame = CFrame.new(QX*0 ,QY* 0,QZ*0)
  2377.  
  2378. for i = QStart + NumberV1,QStart + (QStart*QLifeTime),NumberV2 do swait()
  2379. v.CFrame = CFrame.new(QX* COS(i) ,QY* COS(i),QZ* COS(i))
  2380.  
  2381.  
  2382. end
  2383.  
  2384.  
  2385. end
  2386.  
  2387. end))
  2388.  
  2389. end))
  2390. end
  2391. local CFPos2 = CFrame.new(CFPos)
  2392. local endloop=false
  2393. while endloop==false do
  2394.  
  2395.  
  2396. CQuan.BeamHolder.CFrame = Clerp(CQuan.BeamHolder.CFrame,CFPos2*MoveCF ,.1)
  2397.  
  2398.  
  2399.  
  2400. CFPos2= CQuan.BeamHolder.CFrame
  2401.  
  2402. swait() if CQuan == nil or CQuan.Parent == nil then
  2403. endloop=true
  2404. end end end))
  2405. end
  2406.  
  2407. function createBGCircle(size,parent,color)
  2408. local bgui = Instance.new("BillboardGui",parent)
  2409. bgui.Size = UDim2.new(size, 0, size, 0)
  2410. local imgc = Instance.new("ImageLabel",bgui)
  2411. imgc.BackgroundTransparency = 1
  2412. imgc.ImageTransparency = 0
  2413. imgc.Size = UDim2.new(1,0,1,0)
  2414. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  2415. imgc.ImageColor3 = color
  2416. return bgui,imgc
  2417. end
  2418.  
  2419. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  2420. local bgui,imgc = createBGCircle(size,guipar,color)
  2421. bgui.AlwaysOnTop = true
  2422. imgc.Image = "rbxassetid://" ..img
  2423. local rrot = math.random(1,2)
  2424. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  2425. coroutine.resume(coroutine.create(function()
  2426. for i = 0, 24*delay do
  2427. Swait()
  2428. if rotationenabled == true then
  2429. if rrot == 1 then
  2430. imgc.Rotation = imgc.Rotation + rotsp
  2431. elseif rrot == 2 then
  2432. imgc.Rotation = imgc.Rotation - rotsp
  2433. end
  2434. end
  2435. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  2436. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  2437. end
  2438. bgui:Destroy()
  2439. end))
  2440. end
  2441.  
  2442.  
  2443. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  2444. local DIRECTION = CF(StartPos,EndPos).lookVector
  2445. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  2446. end
  2447.  
  2448. local EyeSizes={
  2449. NumberSequenceKeypoint.new(0,1,0),
  2450. NumberSequenceKeypoint.new(1,0,0)
  2451. }
  2452. local EyeTrans={
  2453. NumberSequenceKeypoint.new(0,0.8,0),
  2454. NumberSequenceKeypoint.new(1,1,0)
  2455. }
  2456. local PE=Instance.new("ParticleEmitter",nil)
  2457. PE.LightEmission=.8
  2458. PE.Color = ColorSequence.new(BRICKC("Really red").Color)
  2459. PE.Size=NumberSequence.new(EyeSizes)
  2460. PE.Transparency=NumberSequence.new(EyeTrans)
  2461. PE.Lifetime=NumberRange.new(0.35,1.5)
  2462. PE.Rotation=NumberRange.new(0,360)
  2463. PE.Rate=999
  2464. PE.VelocitySpread = 10000
  2465. PE.Acceleration = Vector3.new(0,0,0)
  2466. PE.Drag = 5
  2467. PE.Speed = NumberRange.new(0,0,0)
  2468. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  2469. PE.ZOffset = -0
  2470. PE.Name = "PE"
  2471. PE.Enabled = false
  2472.  
  2473. function particles(art)
  2474. local PARTICLES = PE:Clone()
  2475. PARTICLES.Parent = art
  2476. end
  2477.  
  2478. function turnto(position)
  2479. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  2480. end
  2481.  
  2482. function turnto2(position)
  2483. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,position.Y,position.Z)) * CFrame.new(0, 0, 0)
  2484. end
  2485.  
  2486. function CharacterFade(COLOR,TIMER)
  2487. coroutine.resume(coroutine.create(function()
  2488. local FADE = IT("Model",Effects)
  2489. FADE.Name = "FadingEffect"
  2490. for _, c in pairs(Character:GetChildren()) do
  2491. if c.ClassName == "Part" and c ~= RootPart then
  2492. local FADER = c:Clone()
  2493. FADER.Color = COLOR
  2494. FADER.CFrame = c.CFrame
  2495. FADER.Parent = FADE
  2496. FADER.Anchored = true
  2497. FADER.Transparency = 0.25+c.Transparency
  2498. FADER:BreakJoints()
  2499. FADER.Material = "ForceField"
  2500. if FADER.Name == "Head" then
  2501. FADER:ClearAllChildren()
  2502. FADER.Size = VT(1,1,1)
  2503. end
  2504. FADER.CanCollide = false
  2505. end
  2506. end
  2507. local TRANS = 0.75/TIMER
  2508. for i = 1, TIMER do
  2509. Swait()
  2510. for _, c in pairs(FADE:GetChildren()) do
  2511. if c.ClassName == "Part" then
  2512. c.Transparency = c.Transparency + TRANS
  2513. end
  2514. end
  2515. end
  2516. FADE:remove()
  2517. end))
  2518. end
  2519.  
  2520. function Chunks(PART)
  2521. for i = 1, MRANDOM(3,5) do
  2522. coroutine.resume(coroutine.create(function()
  2523. local CHUNK = CreatePart(3, workspace, PART.Material, 0, PART.Transparency, PART.BrickColor, "Chunk", VT(0.3,0.3,0.3)*MRANDOM(7,13)/10, false)
  2524. CHUNK.CFrame = PART.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2525. local CFRAME = PART.CFrame*CF(MRANDOM(-4,4)/2,MRANDOM(-4,4)/2,-6)
  2526. CHUNK.Velocity = CF(PART.Position,CFRAME.p).lookVector*MRANDOM(15,65)
  2527. wait(0.1)
  2528. CHUNK.CanCollide = true
  2529. wait(MRANDOM(15,25)/5)
  2530. for i = 1, 25 do
  2531. Swait()
  2532. CHUNK.Transparency = CHUNK.Transparency + 1/25
  2533. end
  2534. CHUNK:remove()
  2535. end))
  2536. end
  2537. end
  2538.  
  2539. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  2540. if FLOOR ~= nil then
  2541. coroutine.resume(coroutine.create(function()
  2542. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  2543. PART.CFrame = CF(POSITION)
  2544. for i = 1, 45 do
  2545. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreePart", BLOCKSIZE)
  2546. RingPiece.Material = FLOOR.Material
  2547. RingPiece.Color = FLOOR.Color
  2548. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2549. coroutine.resume(coroutine.create(function()
  2550. repeat
  2551. RingPiece.Transparency = RingPiece.Transparency - 0.05
  2552. swait()
  2553. until RingPiece.Transparency==1 or RingPiece.Transparency<0.01
  2554. swait(SWAIT)
  2555. repeat
  2556. RingPiece.Transparency = RingPiece.Transparency + 0.01
  2557. swait()
  2558. until RingPiece.Transparency==0 or RingPiece.Transparency>0.99
  2559. Debris:AddItem(RingPiece,1)
  2560. end))
  2561. end
  2562. PART:remove()
  2563. end))
  2564. end
  2565. end
  2566.  
  2567. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  2568. if FLOOR ~= nil then
  2569. for i = 1, AMOUNT do
  2570. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  2571. DEBREE.Material = FLOOR.Material
  2572. DEBREE.Color = FLOOR.Color
  2573. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2574. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  2575. coroutine.resume(coroutine.create(function()
  2576. Swait(15)
  2577. DEBREE.Parent = workspace
  2578. DEBREE.CanCollide = true
  2579. Debris:AddItem(DEBREE,SWAIT)
  2580. end))
  2581. end
  2582. end
  2583. end
  2584.  
  2585. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  2586. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2587. local mesh = IT("SpecialMesh",wave)
  2588. mesh.MeshType = "Sphere"
  2589. mesh.Scale = SIZE
  2590. mesh.Offset = VT(0,0,0)
  2591. wave.CFrame = CFRAME
  2592. coroutine.resume(coroutine.create(function(PART)
  2593. for i = 1, WAIT do
  2594. Swait()
  2595. mesh.Scale = mesh.Scale + GROW
  2596. wave.Transparency = wave.Transparency + (1/WAIT)
  2597. if wave.Transparency > 0.99 then
  2598. wave:remove()
  2599. end
  2600. end
  2601. end))
  2602. end
  2603. function LobbingObject(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  2604. if DoesCourontine == false then
  2605. local Direction = CF(Part.Position,ToLocation)
  2606. local Distance = (Part.Position - ToLocation).magnitude
  2607. for i = 1, AmountOfTime do
  2608. Swait()
  2609. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  2610. Direction = Part.CFrame
  2611. end
  2612. elseif DoesCourontine == true then
  2613. coroutine.resume(coroutine.create(function()
  2614. local Direction = CF(Part.Position,ToLocation)
  2615. local Distance = (Part.Position - ToLocation).magnitude
  2616. for i = 1, AmountOfTime do
  2617. Swait()
  2618. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  2619. Direction = Part.CFrame
  2620. end
  2621. end))
  2622. end
  2623. end
  2624.  
  2625. function chatfunc(text)
  2626. local chat = coroutine.wrap(function()
  2627. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  2628. Character:FindFirstChild("TalkingBillBoard"):destroy()
  2629. end
  2630. local Bill = Instance.new("BillboardGui",Character)
  2631. Bill.Size = UDim2.new(0,100,0,40)
  2632. Bill.StudsOffset = Vector3.new(0,3,0)
  2633. Bill.Adornee = Character.Head
  2634. Bill.Name = "TalkingBillBoard"
  2635. local Hehe = Instance.new("TextLabel",Bill)
  2636. Hehe.BackgroundTransparency = 1
  2637. Hehe.BorderSizePixel = 0
  2638. Hehe.Text = ""
  2639. Hehe.Font = "Fantasy"
  2640. Hehe.TextSize = 40
  2641. Hehe.TextStrokeTransparency = 0
  2642. Hehe.Size = UDim2.new(1,0,0.5,0)
  2643. coroutine.resume(coroutine.create(function()
  2644. while Hehe ~= nil do
  2645. swait()
  2646. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  2647. --Hehe.Rotation = math.random(-5,5)
  2648. Hehe.TextColor3 = Color3.new(27/255,42/255,53/255)
  2649. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  2650. end
  2651. end))
  2652. for i = 1,string.len(text),1 do
  2653. swait()
  2654. Hehe.Text = string.sub(text,1,i)
  2655. end
  2656. wait(1)--Re[math.random(1, 93)]
  2657. for i = 0, 1, .025 do
  2658. swait()
  2659. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  2660. Hehe.TextStrokeTransparency = i
  2661. Hehe.TextTransparency = i
  2662. end
  2663. Bill:Destroy()
  2664. end)
  2665. chat()
  2666. end
  2667.  
  2668. function onChatted(msg)
  2669. chatfunc(msg)
  2670. end
  2671.  
  2672. function Tween(object,property,time,easingstyle,easingdirection,repet,reverse,deelay)
  2673. local infos=TweenInfo.new(time,Enum.EasingStyle[easingstyle],Enum.EasingDirection[easingdirection],repet,reverse,deelay)
  2674. local tween=game:GetService('TweenService'):Create(object,infos,property)
  2675. tween:Play()
  2676. return tween
  2677. end
  2678.  
  2679. --//=================================\\
  2680. --|| WEAPON CREATION
  2681. --\\=================================//
  2682.  
  2683. MINIGUN = script.Things.Minigun
  2684. MINIGUN.Parent = Character
  2685. BODY = MINIGUN.Body
  2686. hello = BODY.hello
  2687. BARREL = MINIGUN.Barrel
  2688. SPINJOINT = BODY.Holder.SpinJoint
  2689. BODYWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, BODY.Handle, RightArm, CF(0, 0, 0), CF(0, 0, 0))
  2690.  
  2691. BRO=BARREL.MiniBarrel
  2692. Fire=BRO.Barrel1.ParticleEmitter
  2693. Fire2=BRO.Barrel2.ParticleEmitter
  2694. Fire3=BRO.Barrel3.ParticleEmitter
  2695. Fire4=BRO.Barrel4.ParticleEmitter
  2696. Fire5=BRO.Barrel5.ParticleEmitter
  2697. Fire6=BRO.Barrel6.ParticleEmitter
  2698.  
  2699. Humanoid.Died:connect(function()
  2700.  
  2701. end)
  2702.  
  2703. --//=================================\\
  2704. --|| DAMAGE FUNCTIONS
  2705. --\\=================================//
  2706.  
  2707. function StatLabel(CFRAME, TEXT, COLOR)
  2708. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2709. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  2710. local BODYGYRO = IT("BodyGyro", STATPART)
  2711. game:GetService("Debris"):AddItem(STATPART ,5)
  2712. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  2713. BILLBOARDGUI.Adornee = STATPART
  2714. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  2715. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  2716. BILLBOARDGUI.AlwaysOnTop = false
  2717. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  2718. TEXTLABEL.BackgroundTransparency = 1
  2719. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  2720. TEXTLABEL.Text = TEXT
  2721. TEXTLABEL.Font = "Antique"
  2722. TEXTLABEL.FontSize="Size42"
  2723. TEXTLABEL.TextColor3 = COLOR
  2724. TEXTLABEL.TextStrokeTransparency = 0
  2725. TEXTLABEL.TextScaled = true
  2726. TEXTLABEL.TextWrapped = true
  2727. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  2728. for i = 1, 50 do
  2729. Swait()
  2730. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  2731. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  2732. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  2733. end
  2734. THEPART.Parent = nil
  2735. end),STATPART, TEXTLABEL)
  2736. end
  2737.  
  2738. --//=================================\\
  2739. --|| DAMAGING
  2740. --\\=================================//
  2741.  
  2742. function ApplyDamage(Humanoid,Damage,TorsoPart)
  2743. return true
  2744. end
  2745.  
  2746. function EffectsAoE(POSITION,RANGE,MINDMG,MAXDMG,EFFECTS,TYPES,INSTAKILL)
  2747. local CHILDREN = workspace:GetDescendants()
  2748. local knock=false
  2749. local Poisoning=false
  2750. local Fire=false
  2751. local Durability=0
  2752. for index, CHILD in pairs(CHILDREN) do
  2753. if CHILD.ClassName == "Model" and CHILD.Name ~= Character.Name and CHILD.Name ~= Player.Name then
  2754. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2755. if HUM then
  2756. local HEAD = CHILD:FindFirstChild("Head")
  2757. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2758. if TORSO then
  2759. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2760. if EFFECTS > 0 then
  2761. for _, c in pairs(CHILD:GetChildren()) do
  2762. if c:IsA("BasePart") then
  2763. local bv = Instance.new("BodyVelocity",c)
  2764. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2765. if TYPES=="Fling" then
  2766. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2767. elseif TYPES=="Up" then
  2768. bv.maxForce = Vector3.new(0, 1e9, 0)
  2769. elseif TYPES=="UpKnock" then
  2770. knock=true
  2771. bv.maxForce = Vector3.new(0, 1e9, 0)
  2772. elseif TYPES=="Knock" then
  2773. knock=true
  2774. bv.maxForce = Vector3.new(0, 0, 0)
  2775. elseif TYPES=="KnockOut" then
  2776. knock=true
  2777. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2778. elseif TYPES=="Poison" then
  2779. Poisoning=true
  2780. bv.maxForce = Vector3.new(0, 0, 0)
  2781. elseif TYPES=="Fire" then
  2782. Fire=true
  2783. bv.maxForce = Vector3.new(0, 0, 0)
  2784. elseif TYPES=="Move" then
  2785. bv.maxForce = Vector3.new(1e9, 0, 1e9)
  2786. end
  2787. if TYPES~="Normal" then
  2788. bv.velocity = CF(POSITION,TORSO.Position).lookVector*EFFECTS
  2789. end
  2790. coroutine.resume(coroutine.create(function()
  2791. if knock==true then
  2792. HUM.PlatformStand = true
  2793. wait(EFFECTS/25)
  2794. if HUM.PlatformStand== true then
  2795. HUM.PlatformStand = false
  2796. end
  2797. end
  2798. if Poisoning==true then
  2799. Durability=1+EFFECTS/1.5
  2800. repeat
  2801. CreateSound(264001217,TORSO,0.01,0.6)
  2802. Durability=Durability-1
  2803. HUM.Sit = true
  2804. HUM.Sit = false
  2805. HUM.Jump = true
  2806. HUM.Jump = false
  2807. wait(1)
  2808. until Durability<1 or Durability==0
  2809. end
  2810. end))
  2811. Debris:AddItem(bv,0.05)
  2812. end
  2813. end
  2814. end
  2815. end
  2816. end
  2817. end
  2818. end
  2819. end
  2820. end
  2821.  
  2822. function KillChildren(v)
  2823. for _, c in pairs(v:GetChildren()) do
  2824. if c:IsA("BasePart") then
  2825. if c.Transparency < 1 then
  2826. particles(c)
  2827. c.PE.Enabled = true
  2828. c.Parent = Effects
  2829. coroutine.resume(coroutine.create(function()
  2830. Swait(20)
  2831. c.PE.Enabled = false
  2832. Debris:AddItem(c,2)
  2833. end))
  2834. end
  2835. end
  2836. end
  2837. end
  2838.  
  2839. function ApplyAoE(POSITION,RANGE)
  2840. local CHILDREN = workspace:GetDescendants()
  2841. for index, CHILD in pairs(CHILDREN) do
  2842. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2843. local LISTED = false
  2844. if LISTED == false then
  2845. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2846. if HUM then
  2847. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2848. if TORSO then
  2849. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  2850. KillChildren(CHILD)
  2851. end
  2852. end
  2853. end
  2854. end
  2855. end
  2856. end
  2857. end
  2858.  
  2859. function ApplyDamage(Humanoid,Damage,TorsoPart)
  2860. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2861. defence.Name = ("HitBy"..Player.Name)
  2862. game:GetService("Debris"):AddItem(defence, 0.001)
  2863. Damage = Damage
  2864. if Humanoid.Health ~= 0 then
  2865. local CritChance = MRANDOM(1,100)
  2866. if Damage > Humanoid.Health then
  2867. Damage = math.ceil(Humanoid.Health)
  2868. if Damage == 0 then
  2869. Damage = 0.1
  2870. end
  2871. end
  2872. end
  2873. end
  2874.  
  2875. function ApplyAoE2(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2876. local CHILDREN = workspace:GetDescendants()
  2877. for index, CHILD in pairs(CHILDREN) do
  2878. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2879. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2880. if HUM then
  2881. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2882. if TORSO then
  2883. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2884. if FLING > 0 then
  2885. for _, c in pairs(CHILD:GetChildren()) do
  2886. if c:IsA("BasePart") then
  2887. local bv = Instance.new("BodyVelocity")
  2888. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2889. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2890. bv.Parent = c
  2891. Debris:AddItem(bv,0.05)
  2892. end
  2893. end
  2894. end
  2895. end
  2896. end
  2897. end
  2898. end
  2899. end
  2900. end
  2901.  
  2902. --//=================================\\
  2903. --|| RAGDOLL STUFF
  2904. --\\=================================//
  2905.  
  2906. function recurse(root,callback,i)
  2907. i= i or 0
  2908. for _,v in pairs(root:GetChildren()) do
  2909. i = i + 1
  2910. callback(i,v)
  2911.  
  2912. if #v:GetChildren() > 0 then
  2913. i = recurse(v,callback,i)
  2914. end
  2915. end
  2916.  
  2917. return i
  2918. end
  2919.  
  2920. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  2921. attachmentName = attachmentName.."RigAttachment"
  2922. local constraint = Instance.new(className.."Constraint")
  2923. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  2924. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  2925. constraint.Name = "RagdollConstraint"..part1.Name
  2926.  
  2927. for _,propertyData in next,properties or {} do
  2928. constraint[propertyData[1]] = propertyData[2]
  2929. end
  2930.  
  2931. constraint.Parent = character
  2932. end
  2933.  
  2934. function getAttachment0(character, attachmentName)
  2935. for _,child in next,character:GetChildren() do
  2936. local attachment = child:FindFirstChild(attachmentName)
  2937. if attachment then
  2938. return attachment
  2939. end
  2940. end
  2941. end
  2942.  
  2943. function ArtificialHitbox(Part)
  2944. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  2945. HITBOX.CanCollide = true
  2946. HITBOX.CFrame = Part.CFrame
  2947. weldBetween(Part,HITBOX)
  2948. end
  2949.  
  2950. function R15Ragdoll(character,KeepArms)
  2951. return true
  2952. end
  2953.  
  2954. function Ragdoll(Character2,CharTorso,KeepArms)
  2955. return true
  2956. end
  2957.  
  2958. --//=================================\\
  2959. --|| ATTACK FUNCTIONS AND STUFF
  2960. --\\=================================//
  2961.  
  2962. function StartShake(Settings)
  2963. return true
  2964. end
  2965.  
  2966.  
  2967. function CameraEnshaking(TIMER,SHAKE)
  2968. return true
  2969. end
  2970.  
  2971. function printbye(Name)
  2972. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  2973. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  2974. end
  2975.  
  2976. local TOBANISH = {}
  2977.  
  2978. function ApplyDamage(Humanoid,Damage,OneShot)
  2979. Damage = Damage * DAMAGEMULTIPLIER
  2980. local DEAD = false
  2981. if Humanoid.Health < 2000 and OneShot == false then
  2982. if Humanoid.Health - Damage > 0 then
  2983. Humanoid.Health = Humanoid.Health - Damage
  2984. else
  2985. Banish(Humanoid.Parent)
  2986. DEAD = true
  2987. end
  2988. else
  2989. DEAD = true
  2990. Banish(Humanoid.Parent)
  2991. end
  2992. if DEAD == true then
  2993. local PARTS = {}
  2994. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  2995. if CHILD:IsA("BasePart") then
  2996. table.insert(PARTS,CHILD)
  2997. end
  2998. end
  2999. coroutine.resume(coroutine.create(function()
  3000. wait(2)
  3001. repeat
  3002. Swait()
  3003. local PIECE = nil
  3004. if MRANDOM(1,5) == 1 then
  3005. for E = 1, #PARTS do
  3006. if MRANDOM(1,5) == 1 then
  3007. PIECE = PARTS[E]
  3008. table.remove(PARTS,E)
  3009. break
  3010. end
  3011. end
  3012. end
  3013. if PIECE ~= nil then
  3014. if PIECE.Name == "Head" then
  3015. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0,0,0), SoundID = 0, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  3016. else
  3017. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0,0,0), SoundID = 0, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  3018. end
  3019. PIECE:remove()
  3020. end
  3021. until #PARTS == 0
  3022. end))
  3023. end
  3024. end
  3025.  
  3026.  
  3027. function Banish(Foe)
  3028. if Foe and Foe.Name ~= Character.Name and Foe.Name ~= Player.Name and false then
  3029. coroutine.resume(coroutine.create(function()
  3030. --if game.Players:FindFirstChild(Foe.Name) then
  3031. table.insert(TOBANISH,Foe.Name)
  3032. printbye(Foe.Name)
  3033. --end
  3034. Foe.Archivable = true
  3035. local CLONE = Foe:Clone()
  3036. CLONE.Parent = Effects
  3037. local MATERIALS = {"Glass","Neon"}
  3038. for _, c in pairs(CLONE:GetDescendants()) do
  3039. if c:IsA("BasePart") then
  3040. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  3041. CreateSound(340722848, c, 10, 1, false)
  3042. end
  3043. c.Anchored = true
  3044. c.Transparency = c.Transparency + 0.2
  3045. c.Material = MATERIALS[MRANDOM(1,2)]
  3046. c.Color = C3(1,0,0)
  3047. if c.ClassName == "MeshPart" then
  3048. c.TextureID = ""
  3049. end
  3050. if c:FindFirstChildOfClass("SpecialMesh") then
  3051. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  3052. end
  3053. if c:FindFirstChildOfClass("Decal") then
  3054. c:FindFirstChildOfClass("Decal"):remove()
  3055. end
  3056. c.Name = "Banished"
  3057. c.CanCollide = false
  3058. else
  3059. c:remove()
  3060. end
  3061. end
  3062. local A = false
  3063. for i = 1, 35 do
  3064. if A == false then
  3065. A = true
  3066. elseif A == true then
  3067. A = false
  3068. end
  3069. for _, c in pairs(CLONE:GetDescendants()) do
  3070. if c:IsA("BasePart") then
  3071. c.Anchored = true
  3072. c.Material = MATERIALS[MRANDOM(1,2)]
  3073. c.Transparency = c.Transparency + 0.8/35
  3074. if A == false then
  3075. c.CFrame = c.CFrame*CF(MRANDOM(-2,2)/2,MRANDOM(-2,2)/2,MRANDOM(-2,2)/2)
  3076. elseif A == true then
  3077. c.CFrame = c.CFrame*CF(MRANDOM(-2,2)/2,MRANDOM(-2,2)/2,MRANDOM(-2,2)/2)
  3078. end
  3079. end
  3080. end
  3081. Swait()
  3082. end
  3083. CLONE:remove()
  3084. end))
  3085. end
  3086. end
  3087.  
  3088. function ApplyAoE(POSITION,RANGE,ISBANISH)
  3089. return true
  3090. end
  3091.  
  3092. SSExit = New("Part",hello,"SSExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.0, 0.0, 0.299999803),CFrame = CFrame.new(0.0000076, 0.67517471, 0.1282616, 0, 0, 0, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  3093. Weld = New("ManualWeld",SSExit,"Weld",{Part0 = SSExit,Part1 = hello,C0 = CFrame.new(0, 0, 0, 0, 0, 0.5, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(-0.567811257, 0.3, 0.299995422, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),})
  3094.  
  3095. EffectModel = Create("Model"){
  3096. Parent = Character,
  3097. Name = "Effects",
  3098. }
  3099.  
  3100. MOUSEHOLD = false
  3101.  
  3102.  
  3103.  
  3104. SHOOTSOUND = Instance.new("Sound", BRO)
  3105. SHOOTSOUND.Volume = 5
  3106. SHOOTSOUND.Looped = true
  3107. SHOOTSOUND.SoundId = "rbxassetid://146830885"
  3108.  
  3109. SPINSOUND = Instance.new("Sound", BRO)
  3110. SPINSOUND.Volume = 2.5
  3111. SPINSOUND.Looped = true
  3112. SPINSOUND.SoundId = "rbxassetid://2028334518"
  3113.  
  3114.  
  3115. function whenthemewhen()
  3116. CreateSound(4473138327,Torso,3,1,false)
  3117. for i=0, 1, 0.1 / Animation_Speed do
  3118. Swait()
  3119. BODYWELD.C0 = CF(0,0.5,0.3) * ANGLES(RAD(0), RAD(90), RAD(0))
  3120. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)), 0.2 / Animation_Speed)
  3121. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, 0) * ANGLES(RAD(-17), RAD(40), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3122. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, 0 + 0.1 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.2 / Animation_Speed)
  3123. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.3, 0.3, -0.8) * ANGLES(RAD(100), RAD(-70), RAD(30)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3124. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 35), -0.01) * ANGLES(RAD(0), RAD(87), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3125. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 35), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3126. end
  3127. repeat
  3128. StartShake({
  3129. Duration=.1;
  3130. Intensity=2;
  3131. Position=Vector3.new(.1,.1,.1);
  3132. Rotation=Vector3.new(.2,.2,.2);
  3133. })
  3134. for i=0, 0.5, 0.1 / Animation_Speed do
  3135. Swait()
  3136. BODYWELD.C0 = CF(0,0.5,0.3) * ANGLES(RAD(0), RAD(90), RAD(0))
  3137. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)), 1 / Animation_Speed)
  3138. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, 0) * ANGLES(RAD(-17), RAD(40), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3139. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, 0 + 0.1 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.5 / Animation_Speed)
  3140. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.3, 0.3, -0.8) * ANGLES(RAD(100), RAD(-70), RAD(30)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3141. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 35), -0.01) * ANGLES(RAD(0), RAD(87), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3142. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 35), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3143. Fire3.Enabled=true
  3144. Fire4.Enabled=true
  3145. Fire5.Enabled=true
  3146. Fire6.Enabled=true
  3147. SPINNING = true
  3148. SHOOTSOUND:Resume()
  3149. SPINSOUND:Resume()
  3150. turnto(Mouse.Hit.Position)
  3151. local RANDOM = MRANDOM(1, 2)
  3152. if RANDOM == 1 then
  3153. Fire:Emit(5)
  3154. local POS1 = CF(Fire.Parent.WorldPosition,Mouse.Hit.p)*CF(0,0,-45).p
  3155. local AIMPOS = CF(Fire.Parent.WorldPosition,POS1) * 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
  3156. local HIT,POS = CastProperRay(Fire.Parent.WorldPosition,AIMPOS,1000,Character)
  3157. local DISTANCE = (POS - Fire.Parent.WorldPosition).Magnitude
  3158. if HIT ~= nil then
  3159. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3160. Banish(HIT.Parent)
  3161. end
  3162. end
  3163. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0.1,0.1,DISTANCE), Size2 = VT(0.05,0.05,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(Fire.Parent.WorldPosition,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3164. elseif RANDOM == 2 then
  3165. Fire2:Emit(5)
  3166. local POS1 = CF(Fire2.Parent.WorldPosition,Mouse.Hit.p)*CF(0,0,-45).p
  3167. local AIMPOS = CF(Fire2.Parent.WorldPosition,POS1) * 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
  3168. local HIT,POS = CastProperRay(Fire2.Parent.WorldPosition,AIMPOS,1000,Character)
  3169. local DISTANCE = (POS - Fire2.Parent.WorldPosition).Magnitude
  3170. if HIT ~= nil then
  3171. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3172. Banish(HIT.Parent)
  3173. end
  3174. end
  3175. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0.1,0.1,DISTANCE), Size2 = VT(0.05,0.05,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(Fire2.Parent.WorldPosition,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3176. elseif RANDOM == 3 then
  3177. Fire3:Emit(5)
  3178. local POS1 = CF(Fire3.Parent.WorldPosition,Mouse.Hit.p)*CF(0,0,-45).p
  3179. local AIMPOS = CF(Fire3.Parent.WorldPosition,POS1) * 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
  3180. local HIT,POS = CastProperRay(Fire3.Parent.WorldPosition,AIMPOS,1000,Character)
  3181. local DISTANCE = (POS - Fire3.Parent.WorldPosition).Magnitude
  3182. if HIT ~= nil then
  3183. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3184. Banish(HIT.Parent)
  3185. end
  3186. end
  3187. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0.1,0.1,DISTANCE), Size2 = VT(0.05,0.05,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(Fire3.Parent.WorldPosition,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3188. elseif RANDOM == 4 then
  3189. Fire4:Emit(5)
  3190. local POS1 = CF(Fire4.Parent.WorldPosition,Mouse.Hit.p)*CF(0,0,-45).p
  3191. local AIMPOS = CF(Fire4.Parent.WorldPosition,POS1) * 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
  3192. local HIT,POS = CastProperRay(Fire4.Parent.WorldPosition,AIMPOS,1000,Character)
  3193. local DISTANCE = (POS - Fire4.Parent.WorldPosition).Magnitude
  3194. if HIT ~= nil then
  3195. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3196. Banish(HIT.Parent)
  3197. end
  3198. end
  3199. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0.1,0.1,DISTANCE), Size2 = VT(0.05,0.05,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(Fire4.Parent.WorldPosition,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3200. elseif RANDOM == 5 then
  3201. Fire5:Emit(5)
  3202. local POS1 = CF(Fire5.Parent.WorldPosition,Mouse.Hit.p)*CF(0,0,-45).p
  3203. local AIMPOS = CF(Fire5.Parent.WorldPosition,POS1) * 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
  3204. local HIT,POS = CastProperRay(Fire5.Parent.WorldPosition,AIMPOS,1000,Character)
  3205. local DISTANCE = (POS - Fire5.Parent.WorldPosition).Magnitude
  3206. if HIT ~= nil then
  3207. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3208. Banish(HIT.Parent)
  3209. end
  3210. end
  3211. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0.1,0.1,DISTANCE), Size2 = VT(0.05,0.05,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(Fire5.Parent.WorldPosition,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3212. elseif RANDOM == 6 then
  3213. Fire6:Emit(5)
  3214. local POS1 = CF(Fire6.Parent.WorldPosition,Mouse.Hit.p)*CF(0,0,-45).p
  3215. local AIMPOS = CF(Fire6.Parent.WorldPosition,POS1) * 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
  3216. local HIT,POS = CastProperRay(Fire6.Parent.WorldPosition,AIMPOS,1000,Character)
  3217. local DISTANCE = (POS - Fire6.Parent.WorldPosition).Magnitude
  3218. if HIT ~= nil then
  3219. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3220. Banish(HIT.Parent)
  3221. end
  3222. end
  3223. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0.1,0.1,DISTANCE), Size2 = VT(0.05,0.05,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(Fire6.Parent.WorldPosition,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3224. end
  3225. end
  3226. until MOUSEHOLD == false
  3227. Fire3.Enabled=false
  3228. Fire4.Enabled=false
  3229. Fire5.Enabled=false
  3230. Fire6.Enabled=false
  3231. CreateSound(4498806901,Head,6,1,false)
  3232. CreateSound(4473119880,Torso,3,1,false)
  3233. SHOOTSOUND:Stop()
  3234. SPINSOUND:Stop()
  3235. SPINNING = false
  3236. end
  3237.  
  3238. --//=================================\\
  3239. --|| ASSIGN THINGS TO KEYS
  3240. --\\=================================//
  3241. local sec=0
  3242. local sec1=0
  3243.  
  3244. SPINNING = false
  3245.  
  3246. function MouseDown(Mouse)
  3247. MOUSEHOLD = true
  3248. if ATTACK==false then
  3249. whenthemewhen()
  3250. end
  3251. end
  3252.  
  3253. function MouseUp(Mouse)
  3254. MOUSEHOLD = false
  3255. end
  3256.  
  3257. function KeyDown(Key)
  3258. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  3259. KEYHOLD = true
  3260. if Key == "q" and ATTACK == false then
  3261. elseif Key == "l" and muting==false then
  3262. muting=true
  3263. elseif Key == "l" and muting==true then
  3264. muting=false
  3265. end
  3266. end
  3267. end
  3268.  
  3269. function KeyUp(Key)
  3270. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  3271. KEYHOLD = false
  3272. end
  3273. end
  3274.  
  3275. Mouse.Button1Down:connect(function(NEWKEY)
  3276. MouseDown(NEWKEY)
  3277. end)
  3278. Mouse.Button1Up:connect(function(NEWKEY)
  3279. MouseUp(NEWKEY)
  3280. end)
  3281. Mouse.KeyDown:connect(function(NEWKEY)
  3282. KeyDown(NEWKEY)
  3283. end)
  3284. Mouse.KeyUp:connect(function(NEWKEY)
  3285. KeyUp(NEWKEY)
  3286. end)
  3287.  
  3288. --//=================================\\
  3289. --\\=================================//
  3290.  
  3291.  
  3292. --//=================================\\
  3293. --|| WRAP THE WHOLE SCRIPT UP
  3294. --\\=================================//
  3295.  
  3296. Humanoid.Changed:connect(function(Jump)
  3297. if Jump == "Jump" and (Disable_Jump == true) then
  3298. Humanoid.Jump = false
  3299. end
  3300. end)
  3301.  
  3302. local Blocc = CreatePart(0,RightArm,"Neon",1,1,BrickColor.Random(),"aa",VT(0.005,0.005,0.005),false)
  3303. local BW = CreateWeldOrSnapOrMotor("Weld",RightArm,RightArm,Blocc,CF(0,-2,0),CF(0,0,0))
  3304.  
  3305. local BLINKLOOP = 0
  3306. ANIMATE.Parent = nil
  3307.  
  3308. local bguis = Instance.new("BillboardGui",Torso)
  3309. bguis.Size = UDim2.new(25, 0, 25, 0)
  3310. local imgca = Instance.new("ImageLabel",bguis)
  3311. imgca.BackgroundTransparency = 1
  3312. imgca.ImageTransparency = 1
  3313. imgca.Size = UDim2.new(3,0,3,0)
  3314. imgca.Image = "rbxassetid://0"
  3315. imgca.ImageColor3 = Color3.new(0,0,0)
  3316. local EFFECTPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3317.  
  3318. local infrotate = 0.1
  3319.  
  3320. ROTATE = 0
  3321.  
  3322. game:GetService"RunService".RenderStepped:Connect(function()
  3323. ROTATE = ROTATE + 25
  3324. if SPINNING == true then
  3325. Tween(SPINJOINT, {C0 = ANGLES(RAD(ROTATE), 0, 0)}, .1, "Linear", "Out", 0, false, 0)
  3326. coroutine.resume(coroutine.create(function()
  3327. local hitm = script.Things.Shell:Clone()
  3328. hitm.Parent = EffectModel
  3329. hitm.CFrame = SSExit.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)))
  3330. hitm.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(MRANDOM(-5, 5),15,MRANDOM(-5, 5))
  3331. wait(1)
  3332. for i = 0,1,.1 do
  3333. swait()
  3334. hitm.Transparency = i
  3335. end
  3336. hitm:Destroy()
  3337. end))
  3338. elseif SPINNING == false then
  3339. Tween(SPINJOINT, {C0 = ANGLES(0, 0, 0)}, 1.2, "Linear", "Out", 0, false, 0)
  3340. end
  3341. end)
  3342.  
  3343. while true do
  3344. Swait()
  3345. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3346. v:Stop();
  3347. end
  3348. ANIMATE.Parent = nil
  3349. SINE = SINE + CHANGE*2
  3350. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3351. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3352. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3353. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  3354. if FULL == false then
  3355. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3356. ANIM = "Jump"
  3357. if ATTACK == false then
  3358. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), .5 / Animation_Speed)
  3359. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), .5 / Animation_Speed)
  3360. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.2) * ANGLES(RAD(-20), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, .5 / Animation_Speed)
  3361. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.2) * ANGLES(RAD(-20), RAD(0), RAD(15)) * LEFTSHOULDERC0, .5 / Animation_Speed)
  3362. RightHip.C0 = Clerp(RightHip.C0, CF(1, -.5, -0.5) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), .5 / Animation_Speed)
  3363. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), .5 / Animation_Speed)
  3364. end
  3365. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3366. ANIM = 'Fall'
  3367. if ATTACK == false then
  3368. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), .5 / Animation_Speed)
  3369. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), .5 / Animation_Speed)
  3370. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-10), RAD(0), RAD(25)) * RIGHTSHOULDERC0, .5 / Animation_Speed)
  3371. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-10), RAD(0), RAD(-25)) * LEFTSHOULDERC0, .5 / Animation_Speed)
  3372. RightHip.C0 = Clerp(RightHip.C0, CF(1, -.5, -0.5) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), .5 / Animation_Speed)
  3373. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), .5 / Animation_Speed)
  3374. end
  3375. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3376. ANIM = "Idle"
  3377. if ATTACK == false then
  3378. BODYWELD.C0 = CF(0,0.5,0.3) * ANGLES(RAD(0), RAD(90), RAD(0))
  3379. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 5.5* SIN(SINE / 60)), RAD(10), RAD(40)), 1 / Animation_Speed)
  3380. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, 0) * ANGLES(RAD(30), RAD(40), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3381. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, 0 + 0.05 * COS(SINE / 60)) * ANGLES(RAD(-10), RAD(10), RAD(-40)), 0.5 / Animation_Speed)
  3382. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.3, 0.3, -0.8) * ANGLES(RAD(150), RAD(-70), RAD(40)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3383. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 60), -0.01) * ANGLES(RAD(-20), RAD(87), RAD(0)) * ANGLES(RAD(-7), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3384. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 60), -0.01) * ANGLES(RAD(-12), RAD(-75), RAD(0)) * ANGLES(RAD(-7), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3385. end
  3386. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3387. ANIM = "Walk"
  3388. if ATTACK == false then
  3389. local Testwalk1 = Humanoid.MoveDirection*Torso.CFrame.LookVector
  3390. local Testwalk2 = Humanoid.MoveDirection*Torso.CFrame.RightVector
  3391. LOOKVEC = Testwalk1.X+Testwalk1.Z
  3392. RIGHTVEC = Testwalk2.X+Testwalk2.Z
  3393. local RIGHTHIPSECOND = CF(LOOKVEC/10 * COS(SINE / 18),0,0)*ANGLES(SIN(RIGHTVEC/5) * COS(SINE / 18),0,SIN(-LOOKVEC/2) * COS(SINE / 18))
  3394. local LEFTHIPSECOND = CF(-LOOKVEC/10 * COS(SINE / 18),0,0)*ANGLES(SIN(RIGHTVEC/5) * COS(SINE / 18),0,SIN(-LOOKVEC/2) * COS(SINE / 18))
  3395. BODYWELD.C0 = CF(0,0.5,0.3) * ANGLES(RAD(0), RAD(90), RAD(0))
  3396. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, 0) * ANGLES(RAD(30), RAD(40), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3397. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2* SIN(SINE / 10)), RAD(0), RAD(40)), 0.8 / Animation_Speed)
  3398. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.3, 0.3, -0.8) * ANGLES(RAD(150), RAD(-70), RAD(40)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3399. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1 , -0.185 + 0.055 * COS(SINE / 10) + -SIN(SINE / 10) / 8) * ANGLES(RAD((LOOKVEC - LOOKVEC/5 * COS(SINE / 10))*10), RAD((-RIGHTVEC - -RIGHTVEC/5 * COS(SINE / 10))*5) , RAD(-40)), 0.8 / Animation_Speed)
  3400. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1+ 0.2 * SIN(SINE / 18), -0.5)* ANGLES(RAD(0),RAD(120),RAD(0))*RIGHTHIPSECOND*ANGLES(RAD(0),RAD(0),RAD(0 - 5 * COS(SINE / 18))), 0.8 / Animation_Speed)
  3401. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.3, -0.8- 0.2 * SIN(SINE / 18), -.05)* ANGLES(RAD(0),RAD(-50),RAD(0))*LEFTHIPSECOND*ANGLES(RAD(-5),RAD(0),RAD(0 - 5 * COS(SINE / 18))), 0.8 / Animation_Speed)
  3402. end
  3403. end
  3404. end
  3405. if Rooted == false then
  3406. Disable_Jump = false
  3407. Humanoid.JumpPower = 0
  3408. Humanoid.WalkSpeed = Speed
  3409. elseif Rooted == true then
  3410. Disable_Jump = true
  3411. Humanoid.WalkSpeed = 0
  3412. end
  3413. sick.SoundId = "rbxassetid://9038254260" --song here
  3414. sick.Looped = true
  3415. sick.Pitch = 1
  3416. sick.Volume = 1
  3417. sick.Playing = true
  3418. sick.EmitterSize = 25
  3419. if sick.Parent ~= Torso then
  3420. print("Fixing music")
  3421. sick = IT("Sound", Torso)
  3422. sick.SoundId = "rbxassetid://9038254260" --song here
  3423. sick.Looped = true
  3424. sick.Pitch = 1.25
  3425. sick.Volume = 1.5
  3426. sick.Playing = true
  3427. sick.EmitterSize = 1000
  3428. sick.TimePosition = TIMESTAMP
  3429. FIXING = true
  3430. elseif FIXING == false then
  3431. TIMESTAMP = sick.TimePosition
  3432. else
  3433. FIXING = false
  3434. end
  3435. if muting==false then
  3436. sick.Volume = 1.5
  3437. else
  3438. sick.Volume = 0
  3439. end
  3440. Humanoid.DisplayDistanceType = "None"
  3441. Humanoid.PlatformStand = false
  3442. Humanoid.Sit = false
  3443. end
  3444. --//=================================\\
  3445. --\\=================================//
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451. --//====================================================\\--
  3452. --|| END OF SCRIPT
  3453. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement