Advertisement
Da_Blue

silly

May 5th, 2024 (edited)
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.98 KB | None | 0 0
  1. -- Instances:
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextButton = Instance.new("TextButton")
  6. local TextBox = Instance.new("TextBox")
  7. local clear = Instance.new("ImageButton")
  8. local TextLabel = Instance.new("TextLabel")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.CoreGui
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  16. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  17. Frame.BorderSizePixel = 3
  18. Frame.Position = UDim2.new(0.285220385, 0, 0.159420282, 0)
  19. Frame.Size = UDim2.new(0, 375, 0, 220)
  20.  
  21. TextButton.Parent = Frame
  22. TextButton.BackgroundColor3 = Color3.fromRGB(181, 181, 181)
  23. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  24. TextButton.BorderSizePixel = 3
  25. TextButton.Position = UDim2.new(0.128936201, 0, 0.751177847, 0)
  26. TextButton.Size = UDim2.new(0, 266, 0, 45)
  27. TextButton.Font = Enum.Font.SourceSans
  28. TextButton.Text = "Exacute"
  29. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  30. TextButton.TextScaled = true
  31. TextButton.TextSize = 14.000
  32. TextButton.TextWrapped = true
  33. TextButton.MouseButton1Down:Connect(function(Player, SS)
  34.     _G.Path:FireServer(Frame.TextBox.Text)
  35. end)
  36.  
  37. TextBox.Parent = Frame
  38. TextBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  39. TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  40. TextBox.BorderSizePixel = 3
  41. TextBox.Position = UDim2.new(0.0553746745, 0, 0.138939947, 0)
  42. TextBox.Size = UDim2.new(0, 332, 0, 61)
  43. TextBox.Font = Enum.Font.SourceSans
  44. TextBox.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
  45. TextBox.PlaceholderText = "Put your require script hear"
  46. TextBox.Text = ""
  47. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  48. TextBox.TextScaled = true
  49. TextBox.TextSize = 14.000
  50. TextBox.TextWrapped = true
  51.  
  52. clear.Name = "clear"
  53. clear.Parent = Frame
  54. clear.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  55. clear.BackgroundTransparency = 1.000
  56. clear.LayoutOrder = 5
  57. clear.Position = UDim2.new(0.931999981, 0, 0, 0)
  58. clear.Size = UDim2.new(0, 25, 0, 25)
  59. clear.ZIndex = 2
  60. clear.Image = "rbxassetid://3926305904"
  61. clear.ImageRectOffset = Vector2.new(924, 724)
  62. clear.ImageRectSize = Vector2.new(36, 36)
  63. clear.MouseButton1Down:Connect(function(Player, SS)
  64.     _G.Path:Destroy()
  65.     wait(0.1)
  66.     ScreenGui:Destroy()
  67.     else
  68.   ScreenGui:Destroy()
  69. end)
  70.  
  71. TextLabel.Parent = Frame
  72. TextLabel.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  73. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  74. TextLabel.BorderSizePixel = 3
  75. TextLabel.Position = UDim2.new(0.0553746745, 0, 0.470256954, 0)
  76. TextLabel.Size = UDim2.new(0, 332, 0, 50)
  77. TextLabel.Font = Enum.Font.SourceSans
  78. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  79. TextLabel.TextScaled = true
  80. TextLabel.TextSize = 14.000
  81. TextLabel.TextWrapped = true
  82. TextLabel.Text = "i am to lazy to remove this TextLabel so its staying"
  83.  
  84. -- Scripts:
  85.  
  86. local function CPIHP_fake_script() -- Frame.Dragify
  87.     local script = Instance.new('LocalScript', Frame)
  88.  
  89.     local UserInputService = game:GetService("UserInputService")
  90.    
  91.     local gui = script.Parent
  92.    
  93.     local dragging
  94.     local dragInput
  95.     local dragStart
  96.     local startPos
  97.    
  98.     local function update(input)
  99.         local delta = input.Position - dragStart
  100.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  101.     end
  102.    
  103.     gui.InputBegan:Connect(function(input)
  104.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  105.             dragging = true
  106.             dragStart = input.Position
  107.             startPos = gui.Position
  108.    
  109.             input.Changed:Connect(function()
  110.                 if input.UserInputState == Enum.UserInputState.End then
  111.                     dragging = false
  112.                 end
  113.             end)
  114.         end
  115.     end)
  116.    
  117.     gui.InputChanged:Connect(function(input)
  118.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  119.             dragInput = input
  120.         end
  121.     end)
  122.    
  123.     UserInputService.InputChanged:Connect(function(input)
  124.         if input == dragInput and dragging then
  125.             update(input)
  126.         end
  127.     end)
  128. end
  129. coroutine.wrap(CPIHP_fake_script)()
  130.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement