RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Roblox script that spawns bombs in the sky at random"
-- server script (ServerScriptService) while true do local bomb = Instance.new("Part") bomb.Parent = game.Workspace bomb.Name = "Bomb" bomb.Size = Vector3.new(2, 2, 2) bomb.Shape = Enum.PartType.Ball bomb.BrickColor = BrickColor.new("Really black") bomb.Position = Vector3.new(math.random(-100, 100), 100, math.random(-100, 100)) bomb.Anchored = false bomb.CanCollide = true bomb.Velocity = Vector3.new(0, -50, 0) local explosion = Instance.new("Explosion") explosion.BlastRadius = 10 explosion.BlastPressure = 100000 explosion.DestroyJointRadiusPercent = 0.5 explosion.ExplosionType = Enum.ExplosionType.NoCraters local function onTouched() explosion.Position = bomb.Position explosion.Parent = game.Workspace bomb:Destroy() end bomb.Touched:Connect(onTouched) wait(2) end