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

Not sure what I'm doing wrong here. It's working in another game, but not in this one..?

Asked by
Exadide 15
4 years ago
Edited 4 years ago

Here's the issue I'm getting in the developer console.

https://cdn.discordapp.com/attachments/268953014004350977/701603961546866775/unknown.png

There's nothing in Line 613 about a function __call. It's just a variable. The other issue is about another script, in Line 7.

local DataStore2 = require(game.ServerScriptService.DataStore.MainModule)
local limit = 800

while true do
    wait(60) -- 1 Mins: 60
    for _, player in ipairs(game.Players:GetChildren()) do
        local bankStore = DataStore2("Bank",player)
        local got = bankStore:Get(0)
        if got ~= limit then
            if player:IsInGroup(4339340) then
                bankStore:Increment(7)
            elseif player:IsInGroup(4609084) then
                bankStore:Increment(10)
            elseif player:IsInGroup(4609362) then
                bankStore:Increment(13)
            elseif player:IsInGroup(4621123) then
                bankStore:Increment(10)
            elseif player:IsInGroup(4503448) then
                bankStore:Increment(13)
            else
                bankStore:Increment(7)
            end
        end
    end
end

There may be some information I'm missing here. It's working in another published game, but not on this one. What do I need to change?

0
What is the error? Xapelize 2658 — 4y
0
What is the error? Is it infinite yield script? Xapelize 2658 — 4y
0
Not sure what the error is, it only says "function __call" Exadide 15 — 4y

Answer this question