Well,I tried to edit it up but It still wont work. any reason why?
local gps = game:GetService("GamePassService")
local players = game:GetService("Players")
local passId = script:WaitForChild("GamePassID")
function registerPlayer(plr)
if gps:PlayerHasPass(plr, passId) then
local cashmoney = game.ServerStorage.MoneyStorage:WaitForChild(player.Name)
cashmoney.Value = cashmoney.Value + 5000
end
end
players.PlayerAdded:connect(registerPlayer)
