Gamepass Script works in studio test but not on Game Server, problem with my script?
Asked by
7 years ago Edited 7 years ago
Screenshot of the script:
https://gyazo.com/e7c0bf2e93b3bf3208eb9f8a4dc32231
It works fine in studio, giving me the correct weapon dependant on what gamepass I have bought.
I looked in the Developer Console and only 3 scripts are running at that time:
https://gyazo.com/19711e48a2d5d8e82277dcb1b8d89fcf
And then in the Server Log this was there:
https://gyazo.com/1199b5face961e77d902ca2e46646e6b
[UPDATE]
It loads in on this server:
https://www.roblox.com/games/1106697638/H-EiTC-Stuff
But not this one:
https://www.roblox.com/games/1123799747/Eleuthera
01 | local passid = 1124295568 |
02 | local tools = { "Blunderbuss" } |
03 | local GamePassService = Game:GetService( 'GamePassService' ) |
04 | game.Players.PlayerAdded:connect( function (player) |
05 | repeat wait( 0.1 ) until player.Backpack |
06 | repeat wait( 0.1 ) until player.StarterGear |
07 | if GamePassService:PlayerHasPass(player, passid) then |
09 | game.ServerStorage.Tools.Gamepass:FindFirstChild(tools [ i ] ):Clone().Parent = player.Backpack |
10 | game.ServerStorage.Tools.Gamepass:FindFirstChild(tools [ i ] ):Clone().Parent = player.StarterGear |