i made this script:
local nameplayer = game.Players.LocalPlayer
local playername = nameplayer:GetFullName()
local name = print(playername)
game.Players.nameplayer:GetFullName().PlayerGui.Boas_Vindas.Frame.Visible = false
while false do
script.Parent.Parent.Parent.Workspace.LocalPlayer.Humanoid.Health = 0
end
to kill the player when he closes my GUI but dont work. im stuck on line 6
i tried everthing that i know(im a begginer on scripting).
Please Help.
