Hi i was wondering how i would make a GUI that gets cloned into my players backpack as a tool also clone as a surface GUI.
Currently when my cashier clicks “Checkout”, this gives them a receipt with the customers order on it but i would also like to be able to make this receipt clone onto a board where they’d be able to see all recent orders. I have tried adding another line to my code to try and clone the receipt as a surface GUI not a tool but i cannot find something that works, instead they all throw up errors.
Heres my code for when the Cashier clicks “Checkout”
Events.Checkout.OnServerEvent:Connect(function (Player, Order)
CustomerScreen.Order.Visible = false
CustomerScreen.Checkout.Visible = true
local Receipt = game.ServerStorage.Receipt:Clone()
Receipt.Timestamp.Value = os.time()
Receipt.Receipt.Receipt.Cashier.Text = "Served by: "..Player.Name
local Game = game
local ServerStorage = Game:GetService("ServerStorage")
local BindableEvent = game.Workspace.Tech.Events.BindableEvent
local function OnEvent(user)
Receipt.Receipt.Receipt.Customer.Text = "Order For "..user.Name
end
BindableEvent.Event:Connect(OnEvent)
Receipt.Receipt.Receipt.Order.Text = Order
Receipt.Parent = Player.Backpack
end)