Advertisement
c00lrussian

c00lrussian's gui v1 alpha

Dec 7th, 2023
2,737
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.18 KB | Gaming | 0 1
  1. -- im a skid
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Parent = game.Players.LocalPlayer.PlayerGui
  4.  
  5. local mainFrame = Instance.new("Frame")
  6. mainFrame.Size = UDim2.new(0, 400, 0, 200)
  7. mainFrame.Position = UDim2.new(0.5, -200, 0.5, -100)
  8. mainFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  9. mainFrame.BorderSizePixel = 5
  10. mainFrame.BorderColor3 = Color3.new(0, 0, 0)
  11. mainFrame.Parent = screenGui
  12.  
  13. local title = Instance.new("TextLabel")
  14. title.Size = UDim2.new(1, 0, 0, 30)
  15. title.Text = "c00lrussian's gui V1"
  16. title.TextColor3 = Color3.new(1, 1, 1)
  17. title.BackgroundColor3 = Color3.new(0, 0, 0)
  18. title.Parent = mainFrame
  19.  
  20. local decalID = 433517918
  21. local backgroundDecal = Instance.new("Decal")
  22. backgroundDecal.Texture = "http://www.roblox.com/asset/?id=" .. decalID
  23. backgroundDecal.Parent = mainFrame
  24.  
  25. local madeByText = Instance.new("TextLabel")
  26. madeByText.Size = UDim2.new(1, 0, 0, 30)
  27. madeByText.Position = UDim2.new(0, 0, 1, -30)
  28. madeByText.Text = "@c00lrussian on ytb!1!1!1"
  29. madeByText.TextColor3 = Color3.new(1, 1, 1)
  30. madeByText.BackgroundColor3 = Color3.new(0, 0, 0)
  31. madeByText.Parent = mainFrame
  32.  
  33. local isDragging = false
  34. local lastInputPosition = nil
  35.  
  36. mainFrame.InputBegan:Connect(function(input)
  37.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  38.         isDragging = true
  39.         lastInputPosition = input.Position
  40.     end
  41. end)
  42.  
  43. mainFrame.InputChanged:Connect(function(input)
  44.     if isDragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  45.         local delta = input.Position - lastInputPosition
  46.         mainFrame.Position = UDim2.new(
  47.             mainFrame.Position.X.Scale,
  48.             mainFrame.Position.X.Offset + delta.X,
  49.             mainFrame.Position.Y.Scale,
  50.             mainFrame.Position.Y.Offset + delta.Y
  51.         )
  52.         lastInputPosition = input.Position
  53.     end
  54. end)
  55.  
  56. mainFrame.InputEnded:Connect(function(input)
  57.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  58.         isDragging = false
  59.     end
  60. end)
  61.  
  62. local buttonInfo = {
  63.     { "Infinite Yield FE", 'https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source' },
  64.     { "Nameless Admin FE", 'https://raw.githubusercontent.com/FilteringEnabled/NamelessAdmin/main/Source' },
  65.     { "Copy Random Player Skins", copyRandomPlayerSkins },
  66.     { "Hint", showHint },
  67. }
  68.  
  69. -- Function to create and connect buttons
  70. local function createButton(index, text, scriptUrl)
  71.     local button = Instance.new("TextButton")
  72.     button.Size = UDim2.new(0, 200, 0, 50)
  73.     button.Position = UDim2.new(0.5, -100, 0.25 + 0.25 * (index - 1), -25)
  74.     button.Text = text
  75.     button.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  76.     button.BorderColor3 = Color3.new(0, 0, 0)
  77.     button.TextColor3 = Color3.new(0, 0, 0)
  78.     button.Parent = mainFrame
  79.  
  80.     button.MouseButton1Click:Connect(function()
  81.         if type(scriptUrl) == "string" then
  82.             loadstring(game:HttpGet(scriptUrl))()
  83.         elseif type(scriptUrl) == "function" then
  84.             scriptUrl()
  85.         end
  86.     end)
  87. end
  88.  
  89. -- Create and connect buttons
  90. for index, info in ipairs(buttonInfo) do
  91.     createButton(index, info[1], info[2])
  92. end
  93.  
  94. -- Function to copy random player's skins
  95. local function copyRandomPlayerSkins()
  96.     local players = game.Players:GetPlayers()
  97.  
  98.     if #players > 0 then
  99.         local randomPlayer = players[math.random(1, #players)]
  100.  
  101.         -- Ensure the player has character and character appearance
  102.         if randomPlayer.Character and randomPlayer.Character:FindFirstChild("Appearance") then
  103.             -- Copy the appearance to the local player
  104.             game.Players.LocalPlayer.CharacterAppearance = randomPlayer.Character.Appearance:Clone()
  105.         else
  106.             warn("Selected player is missing appearance data.")
  107.         end
  108.     else
  109.         warn("No other players on the server.")
  110.     end
  111. end
  112.  
  113. -- Function to print a hint message
  114. local function showHint()
  115.     local H = Instance.new("Hint", game.Workspace)
  116.     H.Parent = game.Workspace
  117.     H.Text = ("hacked by c00lrussian")
  118. end
  119.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement