Pastebinakun123

Untitled

Apr 7th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Nav = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local Navbar = Instance.new("Frame")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local Frame = Instance.new("Frame")
  12. local TextLabel = Instance.new("TextLabel")
  13. local TextButton = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. Nav.Name = "Nav"
  21. Nav.Parent = ScreenGui
  22. Nav.BackgroundColor3 = Color3.fromRGB(0, 255, 127)
  23. Nav.Position = UDim2.new(0.263157904, 0, 0.380582511, 0)
  24. Nav.Size = UDim2.new(0, 232, 0, 216)
  25. Nav.ZIndex = 0
  26.  
  27. UICorner.Parent = Nav
  28.  
  29. Navbar.Name = "Nav-bar"
  30. Navbar.Parent = Nav
  31. Navbar.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  32. Navbar.Size = UDim2.new(0, 232, 0, 38)
  33. Navbar.ZIndex = 5
  34.  
  35. UICorner_2.Parent = Navbar
  36.  
  37. Frame.Parent = Navbar
  38. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  39. Frame.BorderSizePixel = 0
  40. Frame.Position = UDim2.new(0, 0, 0.789473712, 0)
  41. Frame.Size = UDim2.new(0, 232, 0, 8)
  42.  
  43. TextLabel.Parent = Navbar
  44. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  45. TextLabel.BackgroundTransparency = 1.000
  46. TextLabel.Size = UDim2.new(0, 232, 0, 30)
  47. TextLabel.Font = Enum.Font.Arcade
  48. TextLabel.Text = "FistikYilmaz's Admin Simulator GUI"
  49. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  50. TextLabel.TextScaled = true
  51. TextLabel.TextSize = 14.000
  52. TextLabel.TextWrapped = true
  53.  
  54. TextButton.Parent = Nav
  55. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. TextButton.Position = UDim2.new(0.068965517, 0, 0.240740716, 0)
  57. TextButton.Size = UDim2.new(0, 200, 0, 50)
  58. TextButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  59. TextButton.Font = Enum.Font.Arcade
  60. TextButton.Text = "Start AutoFarm"
  61. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  62. TextButton.TextSize = 14.000
  63. TextButton.MouseButton1Click:Connect(function()
  64. for i=1, 1000000 do
  65. local Event = game:GetService("ReplicatedStorage").Remotes.Lift
  66. Event:FireServer()
  67. wait(0,001)
  68. end
  69. end)
  70.  
  71. -- Scripts:
  72.  
  73. local function JUWV_fake_script() -- Nav.Drag
  74. local script = Instance.new('LocalScript', Nav)
  75.  
  76. local UserInputService = game:GetService("UserInputService")
  77.  
  78. local gui = script.Parent
  79.  
  80. local dragging
  81. local dragInput
  82. local dragStart
  83. local startPos
  84.  
  85. local function update(input)
  86. local delta = input.Position - dragStart
  87. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  88. end
  89.  
  90. gui.InputBegan:Connect(function(input)
  91. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  92. dragging = true
  93. dragStart = input.Position
  94. startPos = gui.Position
  95.  
  96. input.Changed:Connect(function()
  97. if input.UserInputState == Enum.UserInputState.End then
  98. dragging = false
  99. end
  100. end)
  101. end
  102. end)
  103.  
  104. gui.InputChanged:Connect(function(input)
  105. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  106. dragInput = input
  107. end
  108. end)
  109.  
  110. UserInputService.InputChanged:Connect(function(input)
  111. if input == dragInput and dragging then
  112. update(input)
  113. end
  114. end)
  115. end
  116. coroutine.wrap(JUWV_fake_script)()
  117.  
Add Comment
Please, Sign In to add comment