Player = script.Parent.Parent.Parent.Parent.Main.Selecteduser.User.Text
EconomyAgree = script.Parent.Parent.Parent.Parent.EconomyAgree
script.Parent.MouseButton1Click:Connect(function()
game.Players[Player].PlayerGui.ManualCheckInConfirm.Economy:TweenPosition(UDim2.new(.33,0,.714,0))
EconomyAgree:TweenPosition(UDim2.new(.042,0,.652,0))
EconomyAgree.Visible = false
end)
I have a script but it says that the line "game.Players[Player]" is not a valid member of Players but Player has a name in it.

1 comment
Is this a local script or a regular script?