local MarketPlaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(plr)
local success, message = pcall(function()
local haspass = false
local gamepassID = 9794050
haspass = MarketPlaceService:UserOwnsGamePassAsync(plr.UserId, gamepassID)
local toolclone = game.ServerStorage.GravityCoil:Clone()
toolclone.Parent = plr.Backpack
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").Died:Connect(function() -- They've already loaded and won't get their StarterGear until next spawn
wait()
local toolclone1 = game.ServerStorage.GravityCoil:Clone()
toolclone1.Parent = plr.Backpack
print(toolclone.Parent)
end)
end
end)
end)
so in this code at line 16 it has an error it says expected ) to close ( at line 4 got end

1 comment
Try removing the first end statement and move the bracket to the next line.