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

How'd my Script broke?

local passId = 174018055 --Enter your game pass Id here

function isAuthenticated(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if isAuthenticated(player)then tool1 = game.Lighting["Lucky"]:Clone()--Enter your tool name here tool2 = game.Lighting["MP5"]:Clone() --Here also tool3 = game.Lighting["AUG"]:Clone() -- And so on tool4 = game.Lighting[" "]:Clone() tool5 = game.Lighting[" "]:Clone() tool6 = game.Lighting[" "]:Clone()

--DO NOT EDIT BELOW tool1.Parent = player.Backpack tool2.Parent = player.Backpack tool3.Parent = player.Backpack tool4.Parent = player.Backpack tool5.Parent = player.Backpack tool6.Parent = player.Backpack end end)end)

1 answer

local passId = 174018055 --Enter your game pass Id here

function isAuthenticated(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if isAuthenticated(player)then tool1 = game.Lighting["Lucky"]:Clone()--Enter your tool name here tool2 = game.Lighting["MP5"]:Clone() --Here also tool3 = game.Lighting["AUG"]:Clone() -- And so on tool4 = game.Lighting[" "]:Clone() tool5 = game.Lighting[" "]:Clone() tool6 = game.Lighting[" "]:Clone()

--DO NOT EDIT BELOW tool1.Parent = player.Backpack tool2.Parent = player.Backpack tool3.Parent = player.Backpack tool4.Parent = player.Backpack tool5.Parent = player.Backpack tool6.Parent = player.Backpack end end)end)

Ugh, this code is horribly messy. Mind giving an error? Or what's happening?

I can see why you have -2 Rep..

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