01 local passId = 162660258 02
03 function isAuthenticated(player) 04 return game:GetService("GamePassService"):PlayerHasPass(player, passId) 05 end 06
07 game.Players.PlayerAdded:connect(function(player) 08 player.CharacterAdded:connect(function(character) 09 if isAuthenticated(player)then 10 tool = game.Lighting["M14"]:Clone() 11 tool.Parent = player.Backpack 12 end 13 end)end
I need a script that gives you 5 weapons on the gamepass if they bought.
Would you mind actually putting code in a code block?
1 | --LIKE THIS |
2 | for i,v in pairs (Use.Tools.Correctly:GetChildren()) do |
3 | if noob:IsntUsingTheCorrectBlocks() then |
4 | minusrep(noob) |
5 | end |
6 | end |
Yeah, I refuse to take a look at your script because you copied the bloody line numbers..
1 | 01 local passId = 162660258 02 |
2 |
3 | 03 function isAuthenticated(player) 04 return game:GetService( "GamePassService" ):PlayerHasPass(player, passId) 05 end 06 |
4 |
5 | 07 game.Players.PlayerAdded:connect( function (player) 08 player.CharacterAdded:connect( function (character) 09 if isAuthenticated(player) then 10 tool = game.Lighting [ "M14" ] :Clone() 11 tool.Parent = player.Backpack 12 end 13 end ) end |