I am making a script so that if you own a gamepass, the script removes one of the Gears. If you do not, then it removes the other. However, all I get is on one of the ends, theres meant to be a ) to close line 3, which is put at the end. Is this an easy fix?
local passid = 0000000000
local GamePassService = Game:GetService('GamePassService')
game.Players.PlayerAdded:connect(function(player)
repeat wait(0.1) until player.Backpack
repeat wait(0.1) until player.StarterGear
if GamePassService:PlayerHasPass(player, passid) then
script.Parent.RobloxPhoneSmartphone:Remove()
else
script.Parent["RobloxPhone Mobile"]:Remove()
end
end
end
end)

5 comments
Thanks. And yeah, didn't tab this code for whatever reason! :3 Usually I do.
However, I still get the wavy line thing under the second to last end stating " ')' expected (to close '(' at line 3) near end "
You should keep the parenthesis at the very end, did you remove it by accident?
Nope. And the error message does appear after the fix...
Messed around (After going to sleep) and yeah, it's fixed. Thx.