Chatbypassscriptandm

Allow friends for sab

Jan 23rd, 2026 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1.  
  2. -- services
  3. local Players = game:GetService("Players")
  4. local Player = Players.LocalPlayer
  5.  
  6. -- gui
  7. local ScreenGui = Instance.new("ScreenGui")
  8. ScreenGui.Name = "ToggleFriendsGUI"
  9. ScreenGui.ResetOnSpawn = false
  10. ScreenGui.Parent = Player:WaitForChild("PlayerGui")
  11.  
  12. -- main frame
  13. local Frame = Instance.new("Frame")
  14. Frame.Size = UDim2.fromOffset(220, 110)
  15. Frame.Position = UDim2.fromScale(0.4, 0.4)
  16. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  17. Frame.BorderSizePixel = 0
  18. Frame.Parent = ScreenGui
  19.  
  20. -- corner
  21. local Corner = Instance.new("UICorner")
  22. Corner.CornerRadius = UDim.new(0, 10)
  23. Corner.Parent = Frame
  24.  
  25. -- title
  26. local Title = Instance.new("TextLabel")
  27. Title.Size = UDim2.new(1, 0, 0, 28)
  28. Title.BackgroundTransparency = 1
  29. Title.Text = "Plot Toggle"
  30. Title.TextSize = 14
  31. Title.Font = Enum.Font.GothamMedium
  32. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. Title.Parent = Frame
  34.  
  35. -- button
  36. local Button = Instance.new("TextButton")
  37. Button.Size = UDim2.fromOffset(180, 40)
  38. Button.Position = UDim2.fromOffset(20, 45)
  39. Button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  40. Button.Text = "Toggle Friends"
  41. Button.TextSize = 14
  42. Button.Font = Enum.Font.Gotham
  43. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  44. Button.AutoButtonColor = false
  45. Button.Parent = Frame
  46.  
  47. local BtnCorner = Instance.new("UICorner")
  48. BtnCorner.CornerRadius = UDim.new(0, 8)
  49. BtnCorner.Parent = Button
  50.  
  51. -- draggable
  52. Frame.Active = true
  53. Frame.Draggable = true
  54.  
  55. -- click action
  56. Button.MouseButton1Click:Connect(function()
  57. local net = game.ReplicatedStorage:FindFirstChild("Packages")
  58. and game.ReplicatedStorage.Packages:FindFirstChild("Net")
  59.  
  60. if net then
  61. local remote = net:FindFirstChild("RE/PlotService/ToggleFriends")
  62. if remote then
  63. remote:FireServer()
  64. end
  65. end
  66. end)
  67.  
Advertisement
Add Comment
Please, Sign In to add comment