Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How'd my Script broke?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago
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..

Ad

Answer this question