Hello, I was scripting a surface gui. The surface gui is a kiosk for my aracde card. Heres the script. If you need more info ask in the answer thing.
playername = script.Parent.Parent.Parent.Parent.Parent.PlayerName.Value
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Tickets.Ticket.Text = game.Players:FindFirstChild(playername).Backpack.Card.Tickets.Value
script.Parent.Parent.Parent.Buttons.Visible = false
script.Parent.Parent.Parent.Tickets.Visible = true
end)

2 comments
wait wheres the error
btw u should check wether u got the right number of parent