Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Did this script code broke?

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.

1 comment

0

Recheck your script, and look closely at the code. :/

2 answers

Would you mind actually putting code in a code block?

--LIKE THIS
for i,v in pairs(Use.Tools.Correctly:GetChildren()) do
if noob:IsntUsingTheCorrectBlocks() then
minusrep(noob)
end
end

Yeah, I refuse to take a look at your script because you copied the bloody line numbers..

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

This discussion is preserved as it was. New answers, comments, and votes are closed.