Advertisement
chen399d

開源Anti afk--中文UI

Sep 7th, 2024 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.82 KB | Source Code | 0 0
  1. wait(0.5)
  2.  
  3. local ba = Instance.new("ScreenGui")
  4. local ca = Instance.new("TextLabel")
  5. local da = Instance.new("Frame")
  6. local _b = Instance.new("TextLabel")
  7. local ab = Instance.new("TextLabel")
  8.  
  9. ba.Parent = game.CoreGui
  10. ba.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. ca.Parent = ba
  13. ca.Active = true
  14. ca.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  15. ca.Draggable = true
  16. ca.Position = UDim2.new(0.5, 0, 0.3, 0)
  17. ca.Size = UDim2.new(0, 200, 0, 30)
  18. ca.Font = Enum.Font.SourceSansSemibold
  19. ca.Text = "掛機必備神器"
  20. ca.TextSize = 16
  21.  
  22. da.Parent = ca
  23. da.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  24. da.Position = UDim2.new(0, 0, 0.9, 0)
  25. da.Size = UDim2.new(0, 200, 0, 65)
  26.  
  27. _b.Parent = da
  28. _b.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  29. _b.Position = UDim2.new(0, 0, 0.6, 0)
  30. _b.Size = UDim2.new(0, 200, 0, 25)
  31. _b.Font = Enum.Font.Arial
  32. _b.Text = "感謝不知道的作者"
  33. _b.TextSize = 15
  34.  
  35. ab.Parent = da
  36. ab.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  37. ab.Position = UDim2.new(0, 0, 0.1, 0)
  38. ab.Size = UDim2.new(0, 200, 0, 25)
  39. ab.Font = Enum.Font.ArialBold
  40. ab.Text = "Anti AFK:Start"
  41. ab.TextSize = 14
  42.  
  43. local bb = game:GetService("VirtualUser")
  44. game.Players.LocalPlayer.Idled:Connect(function()
  45.     bb:CaptureController()
  46.     bb:ClickButton2(Vector2.new())
  47.     ab.Text = "開源的感謝不知名的作者~~"
  48.     wait(2)
  49.     ab.Text = "狀態:啟用"
  50. end)
  51.  
  52. -- 彩色字體效果
  53. while true do
  54.     local time = tick() * 3 -- 控制速度
  55.     local R = math.sin(time) * 127 + 128
  56.     local G = math.sin(time + 2) * 127 + 128
  57.     local B = math.sin(time + 4) * 127 + 128
  58.    
  59.     ca.TextColor3 = Color3.fromRGB(R, G, B)
  60.     _b.TextColor3 = Color3.fromRGB(R, G, B)
  61.     ab.TextColor3 = Color3.fromRGB(R, G, B)
  62.    
  63.     wait(0.1) -- 控制刷新率
  64. end
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement