script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Reason.Visible = false script.Parent.Parent.TypeName.Visible = false script.Parent.Visible = false script.Parent.Parent.Wait.Visible = true wait(3) local Reason = script.Parent.Parent.Reason.Text game.ServerStorage.IDCard:Clone() game.ServerStorage.IDCard.Handle.SurfaceGui.Reason.Text = Reason local Nameofplayer = script.Parent.Parent.TypeName.Text <-- the local game.ServerStorage.IDCard.Parent = game.Players.Nameofplayer <-- I want this to be the local because when they type in the name in the textbox the script will give it to the player
script.Parent.Parent.Wait.Visible = false script.Parent.Parent.Done.Visible = true script.Parent.Parent.Visible = false script.Parent.Parent.Reason.Visible = true script.Parent.Parent.TypeName.Visible = true script.Parent.Visible = true end)
This is a ScreenGui and the script is in StarterGui.Frame.Submit Thanks

4 comments
Should've posted this in a code block since it's hard to read. What exactly are you trying to do? What is the "Submit" button actually ment to do.
It's ment to give a card with the reason on it to the player that they typed in the Name box
Please format your code using the code block for us viewers to read it easier.
Please format your code using the code block for us viewers to read it easier.