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

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

Asked by 6 years ago

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?

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. User#18718 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question