Advertisement
C-H-4-0-S

Virus

Oct 16th, 2024 (edited)
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. local StarterGui= game:GetService('StarterGui')
  2. wait()
  3. StarterGui:SetCore("ResetButtonCallback",false)
  4.  
  5. local player = game.Players.LocalPlayer
  6. local character = player.Character or player.CharacterAdded:Wait()
  7.  
  8. -- Coordinates for the Far Lands
  9. local farLandsPosition = Vector3.new(1000000, 5000000, 1000000) -- Adjust Y for desired height
  10.  
  11. -- Function to teleport the player
  12. local function teleportToFarLands()
  13. if character and character:FindFirstChild("HumanoidRootPart") then
  14. character.HumanoidRootPart.CFrame = CFrame.new(farLandsPosition)
  15. else
  16. warn("Character or HumanoidRootPart not found!")
  17. end
  18. end
  19.  
  20. -- Teleport the player when the script runs
  21. teleportToFarLands()
  22.  
  23. local Players = game:GetService("Players")
  24. local player = Players.LocalPlayer
  25. local playerGui = player:WaitForChild("PlayerGui")
  26.  
  27. local function createGui()
  28. local screenGui = Instance.new("ScreenGui")
  29. screenGui.Parent = playerGui
  30.  
  31. local frame = Instance.new("Frame")
  32. frame.Size = UDim2.new(0.3, 0, 0.1, 0) -- 30% width, 10% height
  33. frame.Position = UDim2.new(math.random(), 0, math.random(), 0) -- Random position on the screen
  34. frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black background
  35. frame.BorderSizePixel = 0
  36. frame.ZIndex = 10 -- Set a high ZIndex to ensure it appears above other GUIs
  37. frame.Parent = screenGui
  38.  
  39. -- Create a text label
  40. local textLabel = Instance.new("TextLabel")
  41. textLabel.Size = UDim2.new(1, 0, 1, 0) -- Full size of the frame
  42. textLabel.Text = "YOU HAVE BEEN WARNED"
  43. textLabel.TextColor3 = Color3.new(0, 1, 0) -- Green text color
  44. textLabel.BackgroundTransparency = 1 -- No background
  45. textLabel.TextScaled = true -- Scale text to fit
  46. textLabel.ZIndex = 11 -- Higher than the frame to ensure it appears on top
  47. textLabel.Parent = frame
  48. end
  49.  
  50. -- Start creating GUIs at a reasonable interval
  51. while true do
  52. createGui()
  53. wait(0.1) -- Wait for 0.1 seconds before creating the next GUI
  54. end
  55.  
  56. getgenv().auto = true
  57. while getgenv().auto == true do
  58. print("YOU HAVE BEEN WARNED")
  59. wait(0.1)
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement