Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

2 issues, unexpected stuff. Please help (gone wrong)?

15:23:37.865 - Players.ninja6311.PlayerGui.ScreenGui.TextLabel.LocalScript:7: ')' expected (to close '(' at line 5) near '?' script for that:

local replicatedstorage = game:GetService('ReplicatedStorage') local status = replicatedstorage:WaitForChild('InfoValue')

script.Parent.Text = status.Value status.Changed:Connect(function() script.Parent.Text = status.Value end?)

next error 15:23:36.986 - ServerScriptService.MainScript:9: unexpected symbol near '?'

local replicatedstorage = game:GetService('ReplicatedStorage') local status = replicatedstorage:WaitForChild('InfoValue')

while true do

while game.Players.NumPlayers < 2 do status.Value = "At least 2 people need to be in the game for it to start." repeat wait(1.75) until game.Players.NumPlayers >= 2 end?

for i = 25,0, - 1 do status.Value = 'Intermission '..i wait(1) end

local mapsinserverstorage = game:GetService('ServerStorage'):GetChildren() local chosenmap = mapsinserverstorage[math.random(1, #mapsinserverstorage)] chosenmap:Clone().Parent = game.Workspace wait(2) end?

1 comment

0

The formatting on this is all messed up. Please fix using the editor. The blue button for lua allows you to format code in a more readable way.

1 answer

Replace all your ends? with just end. Using question marks is not syntactically correct and is causing errors in both cases.

This discussion is preserved as it was. New answers, comments, and votes are closed.