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