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

Why does my script work solo, but not with multiple people?

Asked by 4 years ago
Edited 4 years ago
01local frame = script.Parent
02local httpService = game:GetService('HttpService')
03local template = script.Parent:WaitForChild('Template')
04local tableOfPlayers = game.ReplicatedStorage.Values.TableOfPlayers
05local decoded = httpService:JSONDecode(tableOfPlayers.Value)
06local inRound = game.ReplicatedStorage.Values.InRound
07 
08 
09local function checkForTable(table_, value)
10    for i, v in pairs(table_) do
11        if v == value then
12            return true
13        else
14            return false
15        end
View all 44 lines...

I can't find the problem. Any help would be appreciated. this is a local script

0
Did you test it in studio Jackmods_YT -12 — 4y

4 answers

Log in to vote
2
Answered by
2_MMZ 1059 Moderation Voter
4 years ago

The only reason why your script works solo, is because that it's a LOCAL script. It happens only on the LOCAL player, that runs the script. You should be able to solve this by copying your code, and pasting it into a regular script in ServerScriptService or Workspace. OR you could just enable API Servers.

Ad
Log in to vote
0
Answered by 4 years ago

make sure you have enabled all services and use a normal script and Published your place.

0
it's in a local script BCthegreat407 12 — 4y
0
tryna with normal script VIImansxryVII 2 — 4y
Log in to vote
0
Answered by
cancle5 120
4 years ago

Make sure it's not a local script and enable API servers. Or just test it in game.

0
if it's a local script how would i change it? BCthegreat407 12 — 4y
Log in to vote
0
Answered by 4 years ago

It needs to be a SCRIPT in ServerScriptService

Answer this question