Advertisement
MatLumber2

Untitled

Feb 6th, 2024 (edited)
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.18 KB | None | 0 0
  1. loadstring(game:HttpGet(("https://raw.githubusercontent.com/REDzHUB/LibraryV2/main/redzLib")))()
  2. MakeWindow({
  3. Hub = {
  4. Title = "MatHub | Murder Mystery 2",
  5. Animation = "by MatHub"
  6. },
  7. Key = {
  8. KeySystem = false,
  9. Title = "Key System",
  10. Description = "",
  11. KeyLink = "",
  12. Keys = {"1234"},
  13. Notifi = {
  14. Notifications = true,
  15. CorrectKey = "Running the Script...",
  16. Incorrectkey = "The key is incorrect",
  17. CopyKeyLink = "Copied to Clipboard"
  18. }
  19. }
  20. })
  21.  
  22.  
  23. MinimizeButton({
  24. Image = "",
  25. Size = {40, 40},
  26. Color = Color3.fromRGB(10, 10, 10),
  27. Corner = true,
  28. Stroke = false,
  29. StrokeColor = Color3.fromRGB(255, 0, 0)
  30. })
  31.  
  32. local Main = MakeTab({Name = "Main"})
  33.  
  34. local section = AddSection(Main, {"Kill"})
  35.  
  36.  
  37. local Part = Instance.new("Part", workspace)
  38. Part.Name = "Running Part"
  39. Part.Position = Vector3.new(0, 1000, 0)
  40. Part.Anchored = true
  41. Part.CanCollide = true
  42. Part.Size = Vector3.new(5, 1, 5)
  43.  
  44. local Plr = game:GetService("Players").LocalPlayer
  45.  
  46. local vim = game:GetService("VirtualInputManager")
  47.  
  48. function GetMurderer()
  49. for i, v in game:GetService("Players"):GetChildren() do
  50. if v.Backpack:FindFirstChild"Knife" or v.Character and v.Character:FindFirstChild("Knife") then return v.Character end
  51. end
  52. return nil
  53. end
  54.  
  55. AddButton(Main, {
  56. Name = "Kill all",
  57. Callback = function()
  58. for i, v in game:GetService("Players"):GetChildren() do
  59. if Plr.Backpack:FindFirstChild("Knife") then Plr.Backpack.Knife.Parent = Plr.Character end
  60. Plr.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  61. vim:SendMouseButtonEvent(0,0,0,true,game,false,0)
  62. task.wait()
  63. vim:SendMouseButtonEvent(0,0,0,false,game,false,0)
  64. task.wait(.75)
  65. end
  66. end
  67. })
  68.  
  69.  
  70.  
  71.  
  72. AddButton(Main, {
  73. Name = "Teleport to lobby",
  74. Callback = function()
  75. Plr.Character.HumanoidRootPart.CFrame = workspace.Lobby.Spawns.Spawn.CFrame
  76. end
  77. })
  78.  
  79.  
  80.  
  81.  
  82. AddButton(Main, {
  83. Name = "Grab gun",
  84. Callback = function()
  85. Plr.Character.HumanoidRootPart.CFrame = workspace.GunDrop.CFrame
  86. end
  87. })
  88.  
  89.  
  90. local section = AddSection(Main, {"Fun"})
  91.  
  92. AddToggle(Main, {
  93. Name = "Auto escape murderer",
  94. Callback = function(state)
  95. AE = state
  96. end
  97. })
  98.  
  99.  
  100.  
  101. AddToggle(Main, {
  102. Name = "Auto shoot murderer",
  103. Callback = function(state)
  104. AH = state
  105. end
  106. })
  107.  
  108. AddToggle(Main, {
  109. Name = "Auto shoot gun",
  110. Callback = function(state)
  111. ASM = state
  112. end
  113. })
  114.  
  115.  
  116. AddToggle(Main, {
  117. Name = "Auto take gun",
  118. Callback = function(state)
  119. ATG = state
  120. end
  121. })
  122.  
  123.  
  124.  
  125. workspace.ChildAdded:Connect(function(child)
  126. task.delay(.25, function()
  127. if child.Name == "GunDrop" and ATG then
  128. local c = Plr.Character.HumanoidRootPart.CFrame
  129. Plr.Character.HumanoidRootPart.CFrame = child.CFrame
  130. Plr.Character.HumanoidRootPart.CFrame = c
  131. end
  132. end)
  133. end)
  134. function MurdererLoop()
  135. if ASM and Plr.Character and GetMurderer() and Plr.Character:FindFirstChild("Gun") or Plr.Backpack:FindFirstChild("Gun") then
  136. if Plr.Backpack:FindFirstChild("Gun") then Plr.Backpack.Gun.Parent = Plr.Character end
  137. local Murd = GetMurderer()
  138. Plr.Character.HumanoidRootPart.CFrame = Murd.HumanoidRootPart.CFrame + Vector3.new(11, 0, 0)
  139. Plr.Character.Gun.KnifeServer.ShootGun:InvokeServer(1, Murd.HumanoidRootPart.Position, "AH")
  140. end
  141. task.wait(.5)
  142. end
  143. function SecondLoop()
  144. if GetMurderer() == Plr.Character or GetMurderer() == nil or not AE then return end
  145. if (GetMurderer().HumanoidRootPart.Position-Plr.Character.HumanoidRootPart.Position).magnitude < 11 then
  146. Plr.Character.HumanoidRootPart.CFrame = Part.CFrame + Vector3.new(0, 3, 0)
  147. end
  148. end
  149.  
  150.  
  151.  
  152. getgenv().God = false
  153. AddToggle(Main, {
  154. Name = "God mode",
  155. Callback = function(value)
  156. getgenv().God = value
  157. if getgenv().God == true then
  158. while getgenv().God == true do
  159. wait()
  160. game:GetService("Players").LocalPlayer.Character.Humanoid.Health = 100
  161. end
  162. end
  163. end
  164. })
  165.  
  166. getgenv().Autofarm = false
  167. AddToggle(Main, {
  168. Name = "Auto afk",
  169. Callback = function(value)
  170. getgenv().Autofarm = value
  171.  
  172. if getgenv().Autofarm == true then
  173. while getgenv().Autofarm == true do
  174. wait()
  175. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 14, 0)
  176. end
  177. end
  178. end
  179. })
  180.  
  181.  
  182.  
  183. local Main = MakeTab({Name = "Visual"})
  184.  
  185. local section = AddSection(Main, {"Player"})
  186.  
  187.  
  188.  
  189. AddToggle(Main, {
  190. Name = "No clip",
  191. Callback = function(s)
  192. getgenv().Noclip = s
  193. game:GetService("RunService").Heartbeat:Connect(function()
  194. if Noclip == true then
  195. game:GetService("RunService").Stepped:wait()
  196. game.Players.LocalPlayer.Character.Head.CanCollide = false
  197. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  198. end
  199. end)
  200. end
  201. })
  202.  
  203. InfiniteJumpEnabled = false
  204. AddToggle(Main, {
  205. Name = "Infinite jump",
  206. Callback = function(s)
  207. getgenv().InfiniteJump = s
  208. game:GetService("UserInputService").JumpRequest:connect(function()
  209.  
  210. if InfiniteJumpEnabled then game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  211. end
  212. end)
  213. end
  214. })
  215.  
  216.  
  217. local section = AddSection(Main, {"Aim"})
  218.  
  219.  
  220.  
  221. AddToggle(Main, {
  222. Name = "Aim gun",
  223. Callback = function(s)
  224. local Players = game.Players
  225. local LocalPlayer = Players.LocalPlayer
  226. local GetPlayers = Players.GetPlayers
  227. local Camera = workspace.CurrentCamera
  228. local WTSP = Camera.WorldToScreenPoint
  229. local FindFirstChild = game.FindFirstChild
  230. local Vector2_new = Vector2.new
  231. local Mouse = LocalPlayer.GetMouse(LocalPlayer)
  232. function ClosestChar()
  233. local Max, Close = math.huge
  234. for I,V in pairs(GetPlayers(Players)) do
  235. if V ~= LocalPlayer and V.Team ~= LocalPlayer.Team and V.Character then
  236. local Head = FindFirstChild(V.Character, "Head")
  237. if Head then
  238. local Pos, OnScreen = WTSP(Camera, Head.Position)
  239. if OnScreen then
  240. local Dist = (Vector2_new(Pos.X, Pos.Y) - Vector2_new(Mouse.X, Mouse.Y)).Magnitude
  241. if Dist < Max then
  242. Max = Dist
  243. Close = V.Character
  244. end
  245. end
  246. end
  247. end
  248. end
  249. return Close
  250. end
  251.  
  252. local MT = getrawmetatable(game)
  253. local __namecall = MT.__namecall
  254. setreadonly(MT, false)
  255. MT.__namecall = newcclosure(function(self, ...)
  256. local Method = getnamecallmethod()
  257. if Method == "FindPartOnRay" and not checkcaller() and tostring(getfenv(0).script) == "GunInterface" then
  258. local Character = ClosestChar()
  259. if Character then
  260. return Character.Head, Character.Head.Position
  261. end
  262. end
  263.  
  264. return __namecall(self, ...)
  265. end)
  266. setreadonly(MT, true)
  267. end
  268. })
  269.  
  270.  
  271.  
  272. AddToggle(Main, {
  273. Name = "Aim knife",
  274. Callback = function(s)
  275. local Players = game.Players
  276. local LocalPlayer = Players.LocalPlayer
  277. local GetPlayers = Players.GetPlayers
  278. local Camera = workspace.CurrentCamera
  279. local WTSP = Camera.WorldToScreenPoint
  280. local FindFirstChild = game.FindFirstChild
  281. local Vector2_new = Vector2.new
  282. local Mouse = LocalPlayer.GetMouse(LocalPlayer)
  283. function ClosestChar()
  284. local Max, Close = math.huge
  285. for I,V in pairs(GetPlayers(Players)) do
  286. if V ~= LocalPlayer and V.Team ~= LocalPlayer.Team and V.Character then
  287. local Head = FindFirstChild(V.Character, "Head")
  288. if Head then
  289. local Pos, OnScreen = WTSP(Camera, Head.Position)
  290. if OnScreen then
  291. local Dist = (Vector2_new(Pos.X, Pos.Y) - Vector2_new(Mouse.X, Mouse.Y)).Magnitude
  292. if Dist < Max then
  293. Max = Dist
  294. Close = V.Character
  295. end
  296. end
  297. end
  298. end
  299. end
  300. return Close
  301. end
  302.  
  303. local MT = getrawmetatable(game)
  304. local __namecall = MT.__namecall
  305. setreadonly(MT, false)
  306. MT.__namecall = newcclosure(function(self, ...)
  307. local Method = getnamecallmethod()
  308. if Method == "FindPartOnRay" and not checkcaller() and tostring(getfenv(0).script) == "GunInterface" then
  309. local Character = ClosestChar()
  310. if Character then
  311. return Character.Head, Character.Head.Position
  312. end
  313. end
  314.  
  315. return __namecall(self, ...)
  316. end)
  317. setreadonly(MT, true)
  318. end
  319. })
  320.  
  321.  
  322. AddButton(Main, {
  323. Name = "Hitbox",
  324. Callback = function()
  325. function getplrsname()
  326. for i,v in pairs(game:GetChildren()) do
  327. if v.ClassName == "Players" then
  328. return v.Name
  329. end
  330. end
  331. end
  332. local players = getplrsname()
  333. local plr = game[players].LocalPlayer
  334. coroutine.resume(coroutine.create(function()
  335. while wait(1) do
  336. coroutine.resume(coroutine.create(function()
  337. for _,v in pairs(game[players]:GetPlayers()) do
  338. if v.Name ~= plr.Name and v.Character then
  339. v.Character.LowerTorso.CanCollide = false
  340. v.Character.LowerTorso.Material = "Neon"
  341. v.Character.LowerTorso.Size = Vector3.new(4,4,4)
  342. v.Character.HumanoidRootPart.Size = Vector3.new(4,4,4)
  343. end
  344. end
  345. end))
  346. end
  347. end))
  348. end
  349. })
  350.  
  351. AddButton(Main, {
  352. Name = "Rainbow gun",
  353. Callback = function(s)
  354. local c = 1 function zigzag(X) return math.acos(math.cos(X * math.pi)) / math.pi end game:GetService("RunService").RenderStepped:Connect(function() if game.Workspace.Camera:FindFirstChild('Arms') then for i,v in pairs(game.Workspace.Camera.Arms:GetDescendants()) do if v.ClassName == 'MeshPart' then v.Color = Color3.fromHSV(zigzag(c),1,1) c = c + .0001 end end end end)
  355. net = true
  356. notify = true
  357. end
  358. })
  359.  
  360.  
  361.  
  362. local Main = MakeTab({Name = "Player"})
  363.  
  364. local Slider = AddSlider(Main, {
  365. Name = "Speed",
  366. MinValue = 25,
  367. MaxValue = 300,
  368. Default = 0,
  369. Increase = 1,
  370. Callback = function(value)
  371. getgenv().Walkspeed = value
  372. pcall(function() game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = value
  373. end)
  374. end
  375. })
  376.  
  377.  
  378. AddToggle(Main, {
  379. Name = "Loop speed",
  380. Callback = function(state)
  381. getgenv().loopW = state
  382. game:GetService("RunService").Heartbeat:Connect(function()
  383. if loopW == true then
  384. pcall(function()
  385. game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = Walkspeed
  386. end)
  387. end
  388. end)
  389. end
  390. })
  391.  
  392. local Slider = AddSlider(Main, {
  393. Name = "Jump",
  394. MinValue = 25,
  395. MaxValue = 300,
  396. Default = 0,
  397. Increase = 1,
  398. Callback = function(value)
  399. getgenv().Jumppower = value
  400. pcall(function()
  401. game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = value
  402. end)
  403. end
  404. })
  405.  
  406. AddToggle(Main, {
  407. Name = "Loop jump",
  408. Callback = function(state)
  409. getgenv().loopJ = state
  410. game:GetService("RunService").Heartbeat:Connect(function()
  411. if loopJ == true then
  412. pcall(function()
  413. game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = Jumppower
  414. end)
  415. end
  416. end)
  417. end
  418. })
  419.  
  420.  
  421.  
  422. local Main = MakeTab({Name = "Esp"})
  423.  
  424.  
  425. local section = AddSection(Main, {"Esp highlight"})
  426.  
  427.  
  428.  
  429. AddButton(Main, {
  430. Name = "Esp highlight",
  431. Callback = function()
  432. loadstring(game:HttpGet('https://raw.githubusercontent.com/kelve123/Ken_Murder_Mystery_esp/main/Ken%20Murder%20Mystery%202%20Esp'))()
  433. end
  434. })
  435.  
  436. AddButton(Main, {
  437. Name = "Esp highlight all",
  438. Callback = function()
  439. local FillColor = Color3.fromRGB(65,255,0)
  440. local DepthMode = "AlwaysOnTop"
  441. local FillTransparency = 0.5
  442. local OutlineColor = Color3.fromRGB(255,255,255)
  443. local OutlineTransparency = 0
  444.  
  445. local CoreGui = game:FindService("CoreGui")
  446. local Players = game:FindService("Players")
  447. local lp = Players.LocalPlayer
  448. local connections = {}
  449.  
  450. local Storage = Instance.new("Folder")
  451. Storage.Parent = CoreGui
  452. Storage.Name = "Highlight_Storage"
  453.  
  454. local function Highlight(plr)
  455. local Highlight = Instance.new("Highlight")
  456. Highlight.Name = plr.Name
  457. Highlight.FillColor = FillColor
  458. Highlight.DepthMode = DepthMode
  459. Highlight.FillTransparency = FillTransparency
  460. Highlight.OutlineColor = OutlineColor
  461. Highlight.OutlineTransparency = 0
  462. Highlight.Parent = Storage
  463.  
  464. local plrchar = plr.Character
  465. if plrchar then
  466. Highlight.Adornee = plrchar
  467. end
  468.  
  469. connections[plr] = plr.CharacterAdded:Connect(function(char)
  470. Highlight.Adornee = char
  471. end)
  472. end
  473.  
  474. Players.PlayerAdded:Connect(Highlight)
  475. for i,v in next, Players:GetPlayers() do
  476. Highlight(v)
  477. end
  478.  
  479. Players.PlayerRemoving:Connect(function(plr)
  480. local plrname = plr.Name
  481. if Storage[plrname] then
  482. Storage[plrname]:Destroy()
  483. end
  484. if connections[plr] then
  485. connections[plr]:Disconnect()
  486. end
  487. end)
  488. end
  489. })
  490.  
  491. local section = AddSection(Main, {"Esp player"})
  492.  
  493. AddButton(Main, {
  494. Name = "Esp box",
  495. Callback = function()
  496. local Player = game:GetService("Players").LocalPlayer
  497. local Camera = game:GetService("Workspace").CurrentCamera
  498. local Mouse = Player:GetMouse()
  499.  
  500. local function DrawESP(plr)
  501. local Box = Drawing.new("Quad")
  502. Box.Visible = false
  503. Box.PointA = Vector2.new(0, 0)
  504. Box.PointB = Vector2.new(0, 0)
  505. Box.PointC = Vector2.new(0, 0)
  506. Box.PointD = Vector2.new(0, 0)
  507. Box.Color = Color3.fromRGB(255, 255, 255)
  508. Box.Thickness = 1
  509. Box.Transparency = 1
  510.  
  511. local function Update()
  512. local c
  513. c = game:GetService("RunService").RenderStepped:Connect(function()
  514. if plr.Character ~= nil and plr.Character:FindFirstChildOfClass("Humanoid") ~= nil and plr.Character.PrimaryPart ~= nil and plr.Character:FindFirstChildOfClass("Humanoid").Health > 0 then
  515. local pos, vis = Camera:WorldToViewportPoint(plr.Character.PrimaryPart.Position)
  516. if vis then
  517. local points = {}
  518. local c = 0
  519. for _,v in pairs(plr.Character:GetChildren()) do
  520. if v:IsA("BasePart") then
  521. c = c + 1
  522. local p, vis = Camera:WorldToViewportPoint(v.Position)
  523. if v == plr.Character.PrimaryPart then
  524. p, vis = Camera:WorldToViewportPoint((v.CFrame * CFrame.new(0, 0, -v.Size.Z)).p)
  525. elseif v.Name == "Head" then
  526. p, vis = Camera:WorldToViewportPoint((v.CFrame * CFrame.new(0, v.Size.Y/2, v.Size.Z/1.25)).p)
  527. elseif string.match(v.Name, "Left") then
  528. p, vis = Camera:WorldToViewportPoint((v.CFrame * CFrame.new(-v.Size.X/2, 0, 0)).p)
  529. elseif string.match(v.Name, "Right") then
  530. p, vis = Camera:WorldToViewportPoint((v.CFrame * CFrame.new(v.Size.X/2, 0, 0)).p)
  531. end
  532. points[c] = {p, vis}
  533. end
  534. end
  535.  
  536. local TopY = math.huge
  537. local DownY = -math.huge
  538. local LeftX = math.huge
  539. local RightX = -math.huge
  540.  
  541. local Left
  542. local Right
  543. local Top
  544. local Bottom
  545.  
  546. local closest = nil
  547. for _,v in pairs(points) do
  548. if v[2] == true then
  549. local p = v[1]
  550. if p.Y < TopY then
  551. Top = p
  552. TopY = p.Y
  553. end
  554. if p.Y > DownY then
  555. Bottom = p
  556. DownY = p.Y
  557. end
  558. if p.X > RightX then
  559. Right = p
  560. RightX = p.X
  561. end
  562. if p.X < LeftX then
  563. Left = p
  564. LeftX = p.X
  565. end
  566. end
  567. end
  568.  
  569. if Left ~= nil and Right ~= nil and Top ~= nil and Bottom ~= nil then
  570. Box.PointA = Vector2.new(Right.X, Top.Y)
  571. Box.PointB = Vector2.new(Left.X, Top.Y)
  572. Box.PointC = Vector2.new(Left.X, Bottom.Y)
  573. Box.PointD = Vector2.new(Right.X, Bottom.Y)
  574.  
  575. Box.Visible = true
  576. else
  577. Box.Visible = false
  578. end
  579. else
  580. Box.Visible = false
  581. end
  582. else
  583. Box.Visible = false
  584. if game.Players:FindFirstChild(plr.Name) == nil then
  585. c:Disconnect()
  586. end
  587. end
  588. end)
  589. end
  590. coroutine.wrap(Update)()
  591. end
  592.  
  593. for _,v in pairs(game:GetService("Players"):GetChildren()) do
  594. if v.Name ~= Player.Name then
  595. DrawESP(v)
  596. end
  597. end
  598.  
  599. game:GetService("Players").PlayerAdded:Connect(function(v)
  600. DrawESP(v)
  601. end)
  602. end
  603. })
  604.  
  605.  
  606. AddButton(Main, {
  607. Name = "Esp name",
  608. Callback = function()
  609. local c = workspace.CurrentCamera
  610. local ps = game:GetService("Players")
  611. local lp = ps.LocalPlayer
  612. local rs = game:GetService("RunService")
  613.  
  614. local function esp(p,cr)
  615. local h = cr:WaitForChild("Humanoid")
  616. local hrp = cr:WaitForChild("Head")
  617.  
  618. local text = Drawing.new("Text")
  619. text.Visible = false
  620. text.Center = true
  621. text.Outline = false
  622. text.Font = 3
  623. text.Size = 16.16
  624. text.Color = Color3.new(170,170,170)
  625.  
  626. local conection
  627. local conection2
  628. local conection3
  629.  
  630. local function dc()
  631. text.Visible = false
  632. text:Remove()
  633. if conection then
  634. conection:Disconnect()
  635. conection = nil
  636. end
  637. if conection2 then
  638. conection2:Disconnect()
  639. conection2 = nil
  640. end
  641. if conection3 then
  642. conection3:Disconnect()
  643. conection3 = nil
  644. end
  645. end
  646.  
  647. conection2 = cr.AncestryChanged:Connect(function(_,parent)
  648. if not parent then
  649. dc()
  650. end
  651. end)
  652.  
  653. conection3 = h.HealthChanged:Connect(function(v)
  654. if (v<=0) or (h:GetState() == Enum.HumanoidStateType.Dead) then
  655. dc()
  656. end
  657. end)
  658.  
  659. conection = rs.RenderStepped:Connect(function()
  660. local hrp_pos,hrp_onscreen = c:WorldToViewportPoint(hrp.Position)
  661. if hrp_onscreen then
  662. text.Position = Vector2.new(hrp_pos.X, hrp_pos.Y - 27)
  663. text.Text = "[ "..p.Name.." ]"
  664. text.Visible = true
  665. else
  666. text.Visible = false
  667. end
  668. end)
  669. end
  670.  
  671. local function p_added(p)
  672. if p.Character then
  673. esp(p,p.Character)
  674. end
  675. p.CharacterAdded:Connect(function(cr)
  676. esp(p,cr)
  677. end)
  678. end
  679.  
  680. for i,p in next, ps:GetPlayers() do
  681. if p ~= lp then
  682. p_added(p)
  683. end
  684. end
  685.  
  686. ps.PlayerAdded:Connect(p_added)
  687. end
  688. })
  689.  
  690. local Main = MakeTab({Name = "Misc"})
  691.  
  692. local section = AddSection(Main, {"Chat"})
  693.  
  694.  
  695. function SpamChat()
  696. while autochat == true do
  697. local ohString1 = "Tbao Hub On Top"
  698. local ohString2 = "All" game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(ohString1, ohString2)
  699. wait(1)
  700. end
  701. end
  702.  
  703. AddToggle(Main, {
  704. Name = "Spam chat",
  705. Callback = function()
  706. autochat = Value
  707. SpamChat()
  708. end
  709. })
  710.  
  711.  
  712. local section = AddSection(Main, {"Sever"})
  713.  
  714. AddButton(Main, {
  715. Name = "Sever hop",
  716. Callback = function()
  717. local Http = game:GetService("HttpService")
  718. local TPS = game:GetService("TeleportService")
  719. local Api = "https://games.roblox.com/v1/games/"
  720. local _place = game.PlaceId
  721. local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=100"
  722. function ListServers(cursor)
  723. local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
  724. return Http:JSONDecode(Raw)
  725. end
  726. local Server, Next; repeat
  727. local Servers = ListServers(Next)
  728. Server = Servers.data[1]
  729. Next = Servers.nextPageCursor
  730. until Server
  731. TPS:TeleportToPlaceInstance(_place,Server.id,game.Players.LocalPlayer)
  732. end
  733. })
  734.  
  735.  
  736. AddButton(Main, {
  737. Name = "Rejoin",
  738. Callback = function()
  739. local ts = game:GetService("TeleportService")
  740. local p = game:GetService("Players").LocalPlayer
  741. ts:Teleport(game.PlaceId, p)
  742. end
  743. })
  744.  
  745.  
  746. local section = AddSection(Main, {"Fps"})
  747.  
  748. AddButton(Main, {
  749. Name = "Fps cap",
  750. Callback = function()
  751. local ToDisable = {
  752. Textures = false,
  753. VisualEffects = true,
  754. Parts = true,
  755. Particles = true,
  756. Sky = true
  757. }
  758.  
  759. local ToEnable = {
  760. FullBright = false
  761. }
  762.  
  763. local Stuff = {}
  764.  
  765. for _, v in next, game:GetDescendants() do
  766. if ToDisable.Parts then
  767. if v:IsA("Part") or v:IsA("Union") or v:IsA("BasePart") then
  768. v.Material = Enum.Material.SmoothPlastic
  769. table.insert(Stuff, 1, v)
  770. end
  771. end
  772.  
  773. if ToDisable.Particles then
  774. if v:IsA("ParticleEmitter") or v:IsA("Smoke") or v:IsA("Explosion") or v:IsA("Sparkles") or v:IsA("Fire") then
  775. v.Enabled = false
  776. table.insert(Stuff, 1, v)
  777. end
  778. end
  779.  
  780. if ToDisable.VisualEffects then
  781. if v:IsA("BloomEffect") or v:IsA("BlurEffect") or v:IsA("DepthOfFieldEffect") or v:IsA("SunRaysEffect") then
  782. v.Enabled = false
  783. table.insert(Stuff, 1, v)
  784. end
  785. end
  786.  
  787. if ToDisable.Textures then
  788. if v:IsA("Decal") or v:IsA("Texture") then
  789. v.Texture = ""
  790. table.insert(Stuff, 1, v)
  791. end
  792. end
  793.  
  794. if ToDisable.Sky then
  795. if v:IsA("Sky") then
  796. v.Parent = nil
  797. table.insert(Stuff, 1, v)
  798. end
  799. end
  800. end
  801. end
  802. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement