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

I made a script to spawn to the mini game for round base game and the script is not running?

Asked by 5 years ago

here is my script i put it inside serverscriptserviece and i dont know whats wrong

Numplayers = 1 Minigames = game.ServerStorage.Minigames : getChildren () function msg (text) print (text) end

01     function PlayerAdded(Player)
02            local Bool = Instance.new ("BoolValue" , Player)
03            Bool.Name = "AFK
04            end
05 
06function GetPlayers()
07local Players = {}
08  for i,v in pairs (game.Players:GetChildren()) do
09  if v:FindFirstChild ("AFK") and not v .AFK.Value then
10         table.insert(Players, v)
11         end
12         end
13         return players
14         end
15         game.Players.PlayerAdded:connect(PlayerAdded)
View all 42 lines...
0
i see so many typos and errors EmbeddedHorror 299 — 5y
0
for starter u left the bool.name as "afk EmbeddedHorror 299 — 5y
0
starters* EmbeddedHorror 299 — 5y
0
i fixed that i must of deleted it :| what else please tell me idk what is wrong matty123465 11 — 5y
View all comments (3 more)
0
Open your output. Are there any errors popping up when you run? Paste the errors here sahadeed 87 — 5y
0
20:22:21.513 - tyr5.rbxl auto-recovery file was created Loading Tree Gen... Finished Loading Tree Gen Loading Cutscene Editor... Finished Loading. 20:22:22.949 - Plugin_142613350.EmptyScriptAdder:7: unfinished string near '") ' Loading Tree Gen... Finished Loading Tree Gen Loading Cutscene Editor... Finished Loading. 20:22:24.285 - Plugin_142613350.EmptyScriptAdder:7: unfinished string near '") ' matty123465 11 — 5y
0
it seems the script goes away? matty123465 11 — 5y

Answer this question