Roblox won’t let me post in Studio Bugs, so if a moderator can move this to the correct category, that would be very helpful.
The issue in question is that Roblox Studio doesn’t load the engine. This happens to only one of my games, but nothing else, so I think it’s a problem with the scripts. Here is an image of what it should look like:
But here’s the end result:
I’m thinking it’s a problem with my scripts, so here’s all of my scripts.
Map Loader:
local status = game.ReplicatedStorage.Status
local maps = game.ReplicatedStorage.Maps:GetChildren()
while true do
for i = 1, 15 do
status.Value = "Starting in "..15 - i
wait(1)
end
local rand = math.random(1, #maps)
local map = maps[rand]:Clone()
map.Parent = workspace
status.Value = "We're going to be fighting in the "..map.Name.." arena."
wait(4)
local players = game.Players:GetChildren()
for i = 1, #players do
if players[i].Character ~= nil then
local spawnLocation = math.random(1, #workspace.Teleports:GetChildren())
players[i].Character:MoveTo(workspace.Teleports:GetChildren()[spawnLocation].Position)
players[i].Character.Parent = workspace.Ingame
end
end
local roundLength = 300
local canWin = true
local roundType = ""
if map:FindFirstChild("Plain") then
roundType = "Plain"
end
repeat
roundLength = roundLength - 1
status.Value = "Time Until End: "..math.floor(roundLength / 60)..":"..roundLength % 60
wait(1)
until roundLength == 0 or canWin == false or #workspace.Ingame:GetChildren() == 0 or (#workspace.Ingame:GetChildren() == 1 and roundType == "Plain")
if #workspace.Ingame:GetChildren() == 1 and roundType == "Plain" then
status.Value = workspace.Ingame:FindFirstChildWhichIsA("Model").Name.. " has won the game!"
wait(5)
workspace.plain:Destroy()
end
if roundLength == 0 then
status.Value = "No one has won, the time ran out!"
wait(5)
end
end
Status of the game
local status = game.ReplicatedStorage.Status
status.Changed:Connect(function()
script.Parent.Text = status.Value
end)
In-game-time:
local seconds = 0
game:GetService("Players").PlayerAdded:Connect(function(player)
while player do
seconds.Value += 0.01
script.Parent.Text = "IGT: "..seconds
task.wait(0.01)
end
end)