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

Am I doing anything wrong? Works in studio but not in actual server...

Asked by
0msh 333 Moderation Voter
6 years ago

this is a script in ServerScriptService... I done this before but it just doesn't seem to work this time...

local gps = game:GetService("GamePassService")
game.Players.PlayerAdded:Connect(function(player)
    player:WaitForChild("StoredStats")
    if gps:PlayerHasPass(player,1280356160) then
        if player.StoredStats.Damage ~= nil then
            player.StoredStats.Damage.Value = player.StoredStats.Damage.Value + 10
        end
    end
end)
0
it is in a localscript ? , you are with filteringenabled ? Rodrigo2003 76 — 6y

Answer this question