How to make raining tacos script in studio lite or roblox studio ( script in description! )
Автор: Gamer Boys!
Загружено: 2025-10-08
Просмотров: 569
Описание:
here's the script copy it if you need to and give credits please and thanks.
Made by Gamer Boys on youtube-credits-to-gamerboys-
--[[
Taco Rain with Music and Disco Lights
Place this in ServerScriptService
--]]
local Workspace = game:GetService("Workspace")
local ServerStorage = game:GetService("ServerStorage")
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
-- === Settings ===
local spawnInterval = 0.3 -- seconds between taco spawns
local tacosPerSpawn = 5 -- number of tacos per spawn
local spawnHeight = 50 -- height above the map
local spawnAreaSize = Vector3.new(50, 0, 50) -- X,Z spawn area
local tacoLifetime = 10 -- seconds before taco disappears
local discoInterval = 0.1 -- disco light change speed)
-- === Admin Settings ===
local adminUsername = "Suzie12563" -- Replace with the admin's username
local songId = "rbxassetid://1840424117" -- Replace with your taco rain song ID
-- === Taco Model Setup ===
local tacoTemplate = ServerStorage:FindFirstChild("Taco")
if not tacoTemplate then
tacoTemplate = Instance.new("Part")
tacoTemplate.Name = "Taco"
tacoTemplate.Size = Vector3.new(2, 1, 1)
tacoTemplate.Color = Color3.fromRGB(255, 165, 0)
tacoTemplate.Anchored = false
tacoTemplate.CanCollide = true
tacoTemplate.TopSurface = Enum.SurfaceType.Smooth
tacoTemplate.BottomSurface = Enum.SurfaceType.Smooth
tacoTemplate.Parent = ServerStorage
end
-- === Disco Light Setup ===
local discoLight = Instance.new("PointLight")
discoLight.Brightness = 5
discoLight.Range = 20
discoLight.Parent = Workspace.Terrain
-- === Music Setup ===
local music = Instance.new("Sound")
music.SoundId = songId
music.Looped = true
music.Volume = 1
music.Parent = Workspace
-- === State Variables ===
local raining = false
-- === Functions ===
local function spawnTacos()
for i = 1, tacosPerSpawn do
local taco = tacoTemplate:Clone()
taco.Position = Vector3.new(
math.random(-spawnAreaSize.X/2, spawnAreaSize.X/2),
spawnHeight,
math.random(-spawnAreaSize.Z/2, spawnAreaSize.Z/2)
)
taco.Parent = Workspace
Debris:AddItem(taco, tacoLifetime)
end
end
local function startTacoRain()
if raining then return end
raining = true
music:Play()
-- Taco spawning loop
spawn(function()
while raining do
spawnTacos()
wait(spawnInterval)
end
end)
-- Disco lights loop
spawn(function()
while raining do
discoLight.Color = Color3.fromRGB(
math.random(0,255),
math.random(0,255),
math.random(0,255)
)
wait(discoInterval)
end
discoLight.Color = Color3.new(1,1,1)
end)
end
local function stopTacoRain()
raining = false
music:Stop()
end
-- === Admin Commands ===
Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if player.Name ~= adminUsername then return end
msg = msg:lower()
if msg == "!starttacos" then
startTacoRain()
elseif msg == "!stoptacos" then
stopTacoRain()
end
end)
end)
if you do a tutorial on your channel give me credits and my hash tags if you don't I'll take down your yt video
ignore these hashtags
#edit4k #music #roblox #blowup #phonkagressive #edit #funny #comedy #automobile #studiolite #roblox #robloxstudio #likeandsubscribe
#script #useful #robloxmusic #nocopyrightmusic #nocopyright
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: