paste_bin_legend

shitty serverside script metoer

Jun 18th, 2026
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.67 KB | None | 0 0
  1. local Workspace = game:GetService("Workspace")
  2. local Debris = game:GetService("Debris")
  3. local TweenService = game:GetService("TweenService")
  4.  
  5. local function getMapCenter()
  6.     local baseplate = Workspace:FindFirstChild("Baseplate")
  7.  
  8.     if baseplate and baseplate:IsA("BasePart") then
  9.         return baseplate.Position
  10.     end
  11.  
  12.     local biggestPart
  13.     local biggestSize = 0
  14.  
  15.     for _, v in ipairs(Workspace:GetDescendants()) do
  16.         if v:IsA("BasePart") then
  17.             local sizeValue = v.Size.X * v.Size.Y * v.Size.Z
  18.  
  19.             if sizeValue > biggestSize then
  20.                 biggestSize = sizeValue
  21.                 biggestPart = v
  22.             end
  23.         end
  24.     end
  25.  
  26.     return biggestPart and biggestPart.Position or Vector3.zero
  27. end
  28.  
  29. local function rustifyMap()
  30.     for _, part in ipairs(Workspace:GetDescendants()) do
  31.         if part:IsA("BasePart") and part.Name ~= "Baseplate" then
  32.             part.Anchored = false
  33.             part.Material = Enum.Material.CorrodedMetal
  34.             part.BrickColor = BrickColor.new("Reddish brown")
  35.         end
  36.     end
  37. end
  38.  
  39. local center = getMapCenter()
  40. local startPos = center + Vector3.new(0, 2000, 0)
  41.  
  42. local msg = Instance.new("Hint")
  43. msg.Parent = Workspace
  44. msg.Text = "A meteor is heading towards us!!!"
  45.  
  46. task.wait(2)
  47.  
  48. msg.Text = "RUN!!!"
  49.  
  50. task.wait(2)
  51.  
  52. msg:Destroy()
  53.  
  54. local meteor = Instance.new("Part")
  55. meteor.Parent = Workspace
  56. meteor.Position = startPos
  57. meteor.Size = Vector3.new(60, 60, 60)
  58. meteor.Shape = Enum.PartType.Ball
  59. meteor.Material = Enum.Material.Rock
  60. meteor.BrickColor = BrickColor.new("Really black")
  61. meteor.Anchored = false
  62.  
  63. local smoke = Instance.new("Smoke")
  64. smoke.Parent = meteor
  65. smoke.Size = 20
  66. smoke.RiseVelocity = 20
  67.  
  68. local light = Instance.new("PointLight")
  69. light.Parent = meteor
  70. light.Brightness = 15
  71. light.Range = 400
  72.  
  73. local bodyVelocity = Instance.new("BodyVelocity")
  74. bodyVelocity.Velocity = Vector3.new(0, -500, 0)
  75. bodyVelocity.MaxForce = Vector3.new(0, math.huge, 0)
  76. bodyVelocity.Parent = meteor
  77.  
  78. task.spawn(function()
  79.     while meteor.Parent do
  80.         local trail = Instance.new("Part")
  81.         trail.Anchored = true
  82.         trail.CanCollide = false
  83.         trail.Shape = Enum.PartType.Ball
  84.         trail.Material = Enum.Material.Neon
  85.         trail.Size = Vector3.new(
  86.             math.random(6, 14),
  87.             math.random(6, 14),
  88.             math.random(6, 14)
  89.         )
  90.         trail.Position = meteor.Position
  91.         trail.Parent = Workspace
  92.  
  93.         TweenService:Create(
  94.             trail,
  95.             TweenInfo.new(0.5),
  96.             {
  97.                 Transparency = 1,
  98.                 Size = Vector3.new(1,1,1)
  99.             }
  100.         ):Play()
  101.  
  102.         Debris:AddItem(trail, 0.5)
  103.  
  104.         task.wait(0.03)
  105.     end
  106. end)
  107.  
  108. task.wait(5)
  109.  
  110. local explosion = Instance.new("Explosion")
  111. explosion.Position = center
  112. explosion.BlastRadius = 120
  113. explosion.BlastPressure = 1000000
  114. explosion.Parent = Workspace
  115.  
  116. rustifyMap()
  117.  
  118. meteor:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment