#help

1 messages · Page 1 of 1 (latest)

short fog
#


RemoteFunction.new("CheckLikes", function(player : Player, ID)
    warn(11)
    local checking = LeagueLikes:GetAsync(ID)
    warn(checking)
    if checking == nil then
        warn(3)
    else
        warn(5)
    end
    
    if checking[player.UserId] then
        old = old or {}
        old[player.UserId] = nil
        warn("removing")
        return old
        
    else
        old = old or {}
        warn("Adding")
        old[player.UserId] = true
        return old
        
    end
    
    
end)

I relleat want this system to when its fired it checks the datastore league likes whichj shoudl be


LeagueLike ={
   [LeadueId] = {
        PlayerId1 = true,
        PlayerId2 = true ,
        etc = true
 }
    
#

00:02:17.249 Changed to current - Client - LocalScript:548
00:02:18.083 35506975 - Client - LocalScript:942
00:02:18.115 11 - Server - LeagueSystem:192
00:02:18.743 GetAsync failed: nil - Server - LeagueSystem:46
00:02:18.743 nil - Server - LeagueSystem:194
00:02:18.743 3 - Server - LeagueSystem:196
00:02:18.743 [SecureRemoteFunction] ServerScriptService.LeagueSystem:201: attempt to index nil with number - Server - RemoteFunction:75
00:02:42.009 Disconnect from 127.0.0.1|65408 - Studio

thorny sierra
#

what?

short fog
#

i was asking for the checking[player.userid] even if it was nil