Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

This script's broken, what's wrong with it? This is what it does.

Asked by
Irvene 5
10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

This script is broken, it's a gamescript it's supposed to wait for 2 players, if there's not then it creates an infinate loop warning the player, until there's 2 or more, then it's supposed to create 2 teams, then team them all evenly and respawn them all, because the map will be selected. then it waits 250 seconds, and it starts over again once all players on 1 team are eliminated then they should all be in spectators.

001repeat wait(0)until game:FindFirstChild("Teams")
002local NumPlayers = 2 --Change this to the number of players needed
003local GameTime = 250 --5 minutes
004local A = game.Players
005local A1 = "This service is unavailable, please wait until 1 more player joins..."
006local A2 = "Welcome to the official meadows sfing game"
007local A4 = "5"
008local A3 = "The amount of players is successful, and the game will be starting in" .. A4 .. "Seconds.."
009local A5 = "Teaming players..."
010local A6 = "Blue team has won"
011local A7 = "Red team has won"
012local BlueTeam = game.Teams:WaitForChild("BlueTeam"):Clone()
013local RedTeam = game.Teams:WaitForChild("RedTeam"):Clone()
014local redplayers = 0
015local blueplayers = 0
View all 109 lines...

2 answers

Log in to vote
1
Answered by 10 years ago

Stop reposting the same question.

Ad
Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago

I hate to see you repost this question again and again, and I don't see what could be wrong.

  • The script should be in Workspace or ServerScriptService (make sure it's not in ServerStorage, I stupididly did that when testing my AntiCurse script)

  • It should not be disabled.

  • It is not giving you errors in server console (also make sure you're not only looking at local console).

Try printing through several areas of the code, like enough players in game and coroutine/loop started. See where those prints stop and edit this post, I will favorite this question and see if you edit it later.

Please refrain from reposting this question.


I kind of wish that there was like a daily bump button, your question hasn't been bumped in a day, you can bring it back to the top question.

Answer this question