RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make me a roblox script that does something random and chaotic"
-- server script (ServerScriptService) local function randomChaos() local randomAction = math.random(1, 3) if randomAction == 1 then -- Create an explosion local explosion = Instance.new("Explosion") explosion.Position = Vector3.new(math.random(-100, 100), math.random(0, 50), math.random(-100, 100)) explosion.Parent = game.Workspace elseif randomAction == 2 then -- Change the skybox local skybox = game.Lighting.Sky skybox.SkyboxBk = "rbxassetid://" .. tostring(math.random(1, 1000000)) skybox.SkyboxDn = "rbxassetid://" .. tostring(math.random(1, 1000000)) skybox.SkyboxFt = "rbxassetid://" .. tostring(math.random(1, 1000000)) skybox.SkyboxLf = "rbxassetid://" .. tostring(math.random(1, 1000000)) skybox.SkyboxRt = "rbxassetid://" .. tostring(math.random(1, 1000000)) skybox.SkyboxUp = "rbxassetid://" .. tostring(math.random(1, 1000000)) elseif randomAction == 3 then -- Change gravity game.Workspace.Gravity = math.random(-100, 100) end task.wait(5) randomChaos() end randomChaos()