Advertisement
RoSploitzer

Speed Simulator X Autofarm GUI

May 30th, 2019
7,116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. --v3rmillion: emre12345
  2. --if u use snippets of the script credit me.
  3. --also remember to vouch.
  4. -- k, thx bye.
  5.  
  6. --credits to angelcuenta3 for anti-afk script
  7.  
  8. local vu = game:GetService("VirtualUser")
  9. game:GetService("Players").LocalPlayer.Idled:connect(function()
  10. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  11. wait(1)
  12. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  13. end)
  14.  
  15. if game.CoreGui:FindFirstChild("emre12345's Speed Simulator X Auto-Farm") == nil then
  16. spawn(function()
  17. loadstring(game:HttpGet("https://pastebin.com/raw/ydinfUTj",true))()
  18. end)
  19. local UI = Instance.new("ScreenGui")
  20. local Main = Instance.new("Frame")
  21. local TextLabel = Instance.new("TextLabel")
  22. local toggle = Instance.new("TextButton")
  23. UI.Name = "emre12345's Speed Simulator X Auto-Farm"
  24. UI.Parent = game.CoreGui
  25. UI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26.  
  27. Main.Name = "Main"
  28. Main.Parent = UI
  29. Main.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
  30. Main.BorderSizePixel = 0
  31. Main.Position = UDim2.new(0.0386378504, 0, 0.686732173, 0)
  32. Main.Size = UDim2.new(0, 319, 0, 185)
  33.  
  34. TextLabel.Parent = Main
  35. TextLabel.BackgroundColor3 = Color3.new(0.145098, 0.145098, 0.145098)
  36. TextLabel.BorderSizePixel = 0
  37. TextLabel.Size = UDim2.new(0, 319, 0, 37)
  38. TextLabel.Font = Enum.Font.GothamSemibold
  39. TextLabel.Text = "emre12345's Speed Simulator X Auto-Farm"
  40. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  41. TextLabel.TextSize = 15
  42. TextLabel.TextWrapped = true
  43.  
  44. toggle.Name = "toggle"
  45. toggle.Parent = Main
  46. toggle.BackgroundColor3 = Color3.new(0.145098, 0.145098, 0.145098)
  47. toggle.BorderSizePixel = 0
  48. toggle.Position = UDim2.new(0.184952974, 0, 0.362162173, 0)
  49. toggle.Size = UDim2.new(0, 200, 0, 87)
  50. toggle.Font = Enum.Font.SourceSans
  51. toggle.Text = "Auto-Farm: Off"
  52. toggle.TextColor3 = Color3.new(1, 1, 1)
  53. toggle.TextScaled = true
  54. toggle.TextSize = 14
  55. toggle.TextWrapped = true
  56. toggle.MouseButton1Click:Connect(function()
  57. if _G.nibba ~= nil and _G.nibba == false then
  58. toggle.Text = "Auto-Farm: On"
  59. _G.nibba = true
  60. elseif _G.nibba ~= nil and _G.nibba == true then
  61. toggle.Text = "Auto-Farm: Off"
  62. _G.nibba = false
  63. end
  64. end)
  65.  
  66. local UserInputService = game:GetService("UserInputService")
  67.  
  68. local gui = Main
  69.  
  70. local dragging
  71. local dragInput
  72. local dragStart
  73. local startPos
  74.  
  75. local function update(input)
  76. local delta = input.Position - dragStart
  77. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  78. end
  79.  
  80. gui.InputBegan:Connect(function(input)
  81. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  82. dragging = true
  83. dragStart = input.Position
  84. startPos = gui.Position
  85.  
  86. input.Changed:Connect(function()
  87. if input.UserInputState == Enum.UserInputState.End then
  88. dragging = false
  89. end
  90. end)
  91. end
  92. end)
  93.  
  94. gui.InputChanged:Connect(function(input)
  95. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  96. dragInput = input
  97. end
  98. end)
  99.  
  100. UserInputService.InputChanged:Connect(function(input)
  101. if input == dragInput and dragging then
  102. update(input)
  103. end
  104. end)
  105. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement