Axzyre

IYLoader

Aug 25th, 2021
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.87 KB | None | 0 0
  1. print("Loaded IY Loader.")
  2. print("Version: v1.0")
  3. -- Credits:
  4. ----------------
  5. -- CryptedData - GUI Owner
  6. -- 1x1 - UI, Scripting
  7. ----------------
  8. -- Editing anything below will break the script
  9.  
  10.  
  11. -- Instances:
  12.  
  13. local ScreenGui = Instance.new("ScreenGui")
  14. local Frame = Instance.new("Frame")
  15. local TextLabel = Instance.new("TextLabel")
  16. local TextLabel_2 = Instance.new("TextLabel")
  17. local TextButton = Instance.new("TextButton")
  18. local TextButton_2 = Instance.new("TextButton")
  19.  
  20. --Properties:
  21.  
  22. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  23. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  24.  
  25. Frame.Parent = ScreenGui
  26. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  27. Frame.BorderColor3 = Color3.fromRGB(25, 25, 25)
  28. Frame.Position = UDim2.new(0.396669179, 0, 0.357055217, 0)
  29. Frame.Size = UDim2.new(0, 276, 0, 233)
  30.  
  31. TextLabel.Parent = Frame
  32. TextLabel.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  33. TextLabel.BorderColor3 = Color3.fromRGB(55, 55, 55)
  34. TextLabel.Size = UDim2.new(0, 276, 0, 27)
  35. TextLabel.Font = Enum.Font.Ubuntu
  36. TextLabel.Text = "IY Loader"
  37. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  38. TextLabel.TextSize = 20.000
  39.  
  40. TextLabel_2.Parent = Frame
  41. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  42. TextLabel_2.BackgroundTransparency = 1.000
  43. TextLabel_2.Position = UDim2.new(0, 0, 0.115879826, 0)
  44. TextLabel_2.Size = UDim2.new(0, 276, 0, 156)
  45. TextLabel_2.Font = Enum.Font.Ubuntu
  46. TextLabel_2.Text = "Welcome to the unofficial IY Loader. Current version: 5.3.1"
  47. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. TextLabel_2.TextSize = 20.000
  49. TextLabel_2.TextWrapped = true
  50.  
  51. TextButton.Parent = Frame
  52. TextButton.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  53. TextButton.BorderColor3 = Color3.fromRGB(55, 55, 55)
  54. TextButton.Position = UDim2.new(0, 0, 0.785407722, 0)
  55. TextButton.Size = UDim2.new(0, 276, 0, 50)
  56. TextButton.Font = Enum.Font.Ubuntu
  57. TextButton.Text = "Load"
  58. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. TextButton.TextSize = 16.000
  60.  
  61. TextButton_2.Parent = Frame
  62. TextButton_2.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  63. TextButton_2.BorderColor3 = Color3.fromRGB(55, 55, 55)
  64. TextButton_2.Position = UDim2.new(0.902173936, 0, 0, 0)
  65. TextButton_2.Size = UDim2.new(0, 27, 0, 27)
  66. TextButton_2.Font = Enum.Font.Ubuntu
  67. TextButton_2.Text = "X"
  68. TextButton_2.TextColor3 = Color3.fromRGB(255, 0, 0)
  69. TextButton_2.TextScaled = true
  70. TextButton_2.TextSize = 14.000
  71. TextButton_2.TextWrapped = true
  72.  
  73. -- Scripts:
  74.  
  75. local function IAFHNY_fake_script() -- Frame.Dragify
  76.     local script = Instance.new('LocalScript', Frame)
  77.  
  78.     local UIS = game:GetService("UserInputService")
  79.     function dragify(Frame)
  80.         local dragToggle = nil
  81.         local dragSpeed = 0
  82.         local dragInput = nil
  83.         local ydragStart = nil
  84.         local dragPos = nil
  85.         function updateInput(input)
  86.             local Delta = input.Position - dragStart
  87.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  88.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
  89.         end
  90.         Frame.InputBegan:Connect(function(input)
  91.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  92.                 dragToggle = true
  93.                 dragStart = input.Position
  94.                 startPos = Frame.Position
  95.                 input.Changed:Connect(function()
  96.                     if input.UserInputState == Enum.UserInputState.End then
  97.                         dragToggle = false
  98.                     end
  99.                 end)
  100.             end
  101.         end)
  102.         Frame.InputChanged:Connect(function(input)
  103.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  104.                 dragInput = input
  105.             end
  106.         end)
  107.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  108.             if input == dragInput and dragToggle then
  109.                 updateInput(input)
  110.             end
  111.         end)
  112.     end
  113.    
  114.     dragify(Frame)
  115. end
  116. coroutine.wrap(IAFHNY_fake_script)()
  117. local function NYGIWM_fake_script() -- TextButton.LocalScript
  118.     local script = Instance.new('LocalScript', TextButton)
  119.  
  120.     local button = script.Parent
  121.     local gui = script.Parent.Parent
  122.    
  123.     button.MouseButton1Click:Connect(function()
  124.         button.Text = "Loading..."
  125.         loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
  126.         gui:Destroy()
  127.     end)
  128. end
  129. coroutine.wrap(NYGIWM_fake_script)()
  130. local function GFVBZE_fake_script() -- TextButton_2.LocalScript
  131.     local script = Instance.new('LocalScript', TextButton_2)
  132.  
  133.     local closebutton = script.Parent
  134.     local gui = script.Parent.Parent
  135.    
  136.     closebutton.MouseButton1Click:Connect(function()
  137.         gui:Destroy()
  138.     end)
  139. end
  140. coroutine.wrap(GFVBZE_fake_script)()
  141.  
Advertisement
Add Comment
Please, Sign In to add comment