Advertisement
ERROR_CODE

Blocks

Jun 19th, 2024 (edited)
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("DI") then
  2. game:GetService("CoreGui"):FindFirstChild("DI"):Destroy()
  3. end
  4. DI = Instance.new("ScreenGui")
  5. MainFrame = Instance.new("Frame")
  6. MainFrame2 = Instance.new("Frame")
  7.  
  8. DI.Name = "DI"
  9. DI.Parent = game.CoreGui
  10. DI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11. game.CoreGui.DI.Enabled = true
  12.  
  13. MainFrame.Name = "MainFrame"
  14. MainFrame.Parent = DI
  15. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  16. MainFrame.BackgroundTransparency = 0
  17. MainFrame.Position = UDim2.new(0.1, 0, 0.58, 0)
  18. MainFrame.Size = UDim2.new(0, 250, 0, 85.5)
  19. MainFrame.ZIndex = 2
  20. MainFrame.BorderSizePixel = 0
  21.  
  22. MainFrame2.Name = "MainFrame2"
  23. MainFrame2.Parent = DI
  24. MainFrame2.AnchorPoint = Vector2.new(0.5, 0.5)
  25. MainFrame2.BackgroundTransparency = 0
  26. MainFrame2.Position = UDim2.new(0.5, 0, 0.58, 0)
  27. MainFrame2.Size = UDim2.new(0, 250, 0, 85.5)
  28. MainFrame2.ZIndex = 2
  29. MainFrame2.BorderSizePixel = 0
  30.  
  31.  
  32. wait(3)
  33.  
  34. MainFrame2:TweenPosition(UDim2.new(0.1, 0, 0.58, 0),"InOut","Sine",5)
  35.  
  36. spawn(function()
  37. while wait() do
  38. if MainFrame.Position == MainFrame2.Position then
  39. MainFrame2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  40. end
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement