I am Trying To Make a Hotel And Make A Non Tool Key card System Using GUIs The Script uses Text Box And I know You Have To Go To Player GUI To see A Players Text Box Message But If The Script goes with The GUI,why cant you Just Do script.Parent.Text Because the script would be still with it, But wont work So I did Both Ways, And both don't work

--[[Restarter]]--
script.Parent.Visible = false
--[[Variable]]--
local FRA = script.Parent
--[[Scripting]]--
script.Parent.Parent.Open.MouseButton1Click:Connect(function()
	script.Parent.Visible = not script.Parent.Visible
end)

FRA.GRKey.MouseButton1Click:Connect(function(plr)
	if FRA.Parent.Parent.Name == "PlayerGui" then
		game.Players:FindFirstChild(FRA.PlayerName.Text).PlayerGui.KeycardGUI.Frame.TextLabel.Visible = false
		game.Players:FindFirstChild(FRA.PlayerName.Text).PlayerGui.KeycardGUI.Frame.Keycard.KeycardName.Text = FRA.KeycardName.Text
	else
		game.Players:FindFirstChild(FRA.PlayerName.Text).PlayerGui.KeycardGUI.Frame.TextLabel.Visible = false
		game.Players:FindFirstChild(FRA.PlayerName.Text).PlayerGui.KeycardGUI.Frame.Keycard.KeycardName.Text = plr.PlayerGui.KeycardGiverGUI.Frame.KeycardName.Text
	end
end)

2 comments

0

I dont get it, could you explain more?

1

I dont know how to fix this but it just looks very wrong.