Como generar meteoros en Roblox Studio. Curso de Roblox Studio #2
Автор: Experto en Computación
Загружено: 2026-01-16
Просмотров: 8
Описание:
Codigo que yo use para otro juego que estoy haciendo:
wait(5)
local function crearMeteoros()
local meteoros = Instance.new("Part")
meteoros.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
hum.Health = 0
end
end)
meteoros.Parent = game.Workspace
meteoros.BrickColor = BrickColor.new("Really red")
meteoros.Material = "CrackedLava"
meteoros.Shape = Enum.PartType.Ball
meteoros.Name = "Meteor"
meteoros.Size = Vector3.new(12,12,12)
local fuego = Instance.new("Fire")
fuego.Parent = meteoros
fuego.Size = 100000
meteoros.Position = Vector3.new(
math.random(-400, 800), --- Este es el eje X
math.random(1000,2000), --- Este es el eje Y
math.random(-400,300) --- Este es el eje Z
)
end
while true do
crearMeteoros()
wait(1)
endwait(5)
local function crearMeteoros()
local meteoros = Instance.new("Part")
meteoros.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
hum.Health = 0
end
end)
meteoros.Parent = game.Workspace
meteoros.BrickColor = BrickColor.new("Really red")
meteoros.Material = "CrackedLava"
meteoros.Shape = Enum.PartType.Ball
meteoros.Name = "Meteor"
meteoros.Size = Vector3.new(12,12,12)
local fuego = Instance.new("Fire")
fuego.Parent = meteoros
fuego.Size = 100000
meteoros.Position = Vector3.new(
math.random(-400, 800), --- Este es el eje X
math.random(1000,2000), --- Este es el eje Y
math.random(-400,300) --- Este es el eje Z
)
end
while true do
crearMeteoros()
wait(1)
end
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: