Okay, so I have a program that gives a gun to a player, if they have the game pass, but now, it won't even run, without an error code. Here is the code, but that probably won't help, as it use to work just fine, and I made sure it wasn't disabled.
local passId = 168101268
gun = game.Lighting.Turret
print ('started to give a gun')
function isAuthenticated(player)
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end
game.Players.PlayerAdded:connect(function(plr)
if isAuthenticated(plr) then
print 'giving gun'
local newgun = gun:clone()
newgun.Parent = plr.Backpack
newgun.Parent = plr.StarterGear
print 'gun givin'
end
end)
it's weird, becuase it worked just fine yesterday, but today, it just stopped working today. Does anyone have any ideas?

3 comments
I will take a look through the settings, but I still have no idea.
Infact, none of the server scripts are working, my data stores are not working, my gamepass awarding is not working, is roblox down right now? or what?
Is ScriptsDisabled true in ScriptContext?