Advertisement
CatGray

Ahhhhhhhhh

Feb 8th, 2024
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. ```lua
  2. local player = game.Players.LocalPlayer
  3. local JrM = Instance.new("ScreenGui")
  4. JrM.Name = "JustAScript"
  5. JrM.Parent = player.PlayerGui
  6.  
  7. local t = Instance.new("ScreenGui")
  8. t.Name = "ToggleGui"
  9. t.Parent = game.Players.LocalPlayer.PlayerGui
  10.  
  11. local b = Instance.new("TextButton")
  12. b.Text = "Toggle"
  13. b.Size = UDim2.new(0, 50, 0, 50)
  14. b.Position = UDim2.new(0, 15, 0, 18)
  15. b.BackgroundColor3 = Color3.new(0, 0, 0)
  16. b.BackgroundTransparency = 0.5
  17. b.TextColor3 = Color3.new(1, 1, 1)
  18. b.BorderColor3 = Color3.new(1, 1, 1)
  19. b.Parent = t
  20.  
  21. local function c()
  22. local g = { "JustAScript" }
  23. for _, n in ipairs(g) do
  24. local r = game.Players.LocalPlayer.PlayerGui:GetDescendants()
  25. for _, i in ipairs(r) do
  26. if i.Name == n then
  27. i.Enabled = not i.Enabled
  28. end
  29. end
  30. end
  31. end
  32.  
  33. b.MouseButton1Click:Connect(c)
  34.  
  35. local JrMFrame = Instance.new("Frame")
  36. JrMFrame.Size = UDim2.new(0, 170, 0, 250)
  37. JrMFrame.Position = UDim2.new(0, 64, 0, -6)
  38. JrMFrame.BackgroundTransparency = 0.5
  39. JrMFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  40. JrMFrame.BorderSizePixel = 2
  41. JrMFrame.BorderColor3 = Color3.new(1, 1, 1)
  42. JrMFrame.Parent = JrM
  43.  
  44. -- Enable dragging for the frame
  45. local draggingEnabled = false
  46. local dragInput, dragStart, startPos
  47.  
  48. JrMFrame.InputBegan:Connect(function(input)
  49. if input.UserInputType == Enum.UserInputType.Touch then
  50. draggingEnabled = true
  51. dragStart = input.Position
  52. startPos = JrMFrame.Position
  53. input.Changed:Connect(function()
  54. if input.UserInputState == Enum.UserInputState.End then
  55. draggingEnabled = false
  56. end
  57. end)
  58. end
  59. end)
  60.  
  61. JrMFrame.InputChanged:Connect(function(input)
  62. if input.UserInputType == Enum.UserInputType.Touch and draggingEnabled then
  63. local delta = input.Position - dragStart
  64. JrMFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  65. end
  66. end)
  67.  
  68. local munFrame = Instance.new("Frame")
  69. munFrame.Size = UDim2.new(0, 170, 0, 23)
  70. munFrame.Position = UDim2.new(0, 1, 0, -4)
  71. munFrame.BackgroundTransparency = 0.1
  72. munFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  73. munFrame.BorderColor3 = Color3.new(1, 1, 1)
  74. munFrame.Parent = JrMFrame
  75.  
  76. local munLabel = Instance.new("TextLabel")
  77. munLabel.Text = "Just A Script"
  78. munLabel.Size = UDim2.new(1, 0, 1, 0)
  79. munLabel.Position = UDim2.new(0, 0, 0, 0)
  80. munLabel.TextColor3 = Color3.new(1, 1, 1)
  81. munLabel.BackgroundTransparency = 1
  82. munLabel.Parent = munFrame
  83.  
  84. local yOffset = 28
  85.  
  86. local function Kuro(button)
  87. print("Infinite Yield")
  88. end
  89.  
  90. local function Kara(button)
  91. print("Infinite Yield")
  92. end
  93.  
  94. local function Kira(button)
  95. print("Infinite Yield")
  96. end
  97.  
  98. local function Kora(button)
  99. print("Infinite Yield")
  100. end
  101.  
  102. local function Kera(button)
  103. print("Amazing Sound")
  104. end
  105.  
  106. local function createButton(name, onClick)
  107. local button = Instance.new("TextButton")
  108. button.Text = name
  109. button.Size = UDim2.new(0, 150, 0, 32)
  110. button.Position = UDim2.new(0, 12, 0, yOffset)
  111. button.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  112. button.TextColor3 = Color3.new(1, 1, 1)
  113. button.Parent = JrMFrame
  114. yOffset = yOffset + 40
  115.  
  116. button.MouseButton1Click:Connect(function()
  117. onClick(button)
  118. end)
  119.  
  120. return button
  121. end
  122.  
  123. createButton("Infinite Yield", Kira)
  124. createButton("Script 2", Kuro)
  125. createButton("Script 3", Kara)
  126. createButton("Script 4", Kera)
  127. createButton("Script 5", Kora)```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement