I have just been working on a script that basically prints a ticket (clones a tool from ServerStorage to workspace).
However it doesn’t fully work the way I intended it to, I wanted it so that staff members could add their username aswell as the passengers username but sadly this doesn’t work. Instead the text on the ticket just gets deleted and stays blank what makes this all worse is the entire script works fine and no errors show in the console so I have no idea what to change or how to fix it after almost 2 hours of trying.
Appreciate any help I can get!
Here is the script I am using
ticket = game.ServerStorage.TicketStorage.Terminal1.Ticket.Handle function OnClicked() ticket.SurfaceGui.StaffName.Text = script.Parent.Parent.IssuedTxt.IssuedInput.Text ticket.SurfaceGui.UsernameOut.Text = script.Parent.Parent.Usertxt.UsernameInput.Text script.Parent.Parent.Parent.Parent.DSRCheckin.Enabled = false wait(3) game.ServerStorage.TicketStorage.Terminal1.Ticket:Clone().Parent = workspace end script.Parent.MouseButton1Down:connect(OnClicked)
Feel free to download the RBXL file with everything on it + a working example
BrokenTicketSystem.rbxl (43.5 KB)