Okay. So, I made a Self-Check-in system, and I want it to send a message to the User with their Flight Number, and their Seat Number. I can not seem to get it to send it to the User who clicks the button. Let me show you.
local FlightNumber = "1132" local Airline = "KAL" local player = game.Players.LocalPlayer local server = require(script.Parent.Server) local domain = "HIDDEN" -- Make sure there is no http:// in here! local key = "HIDDEN" local userId = game:GetService("Players"):GetUserIdFromNameAsync(player) local api = server(domain, key) script.Parent.MouseButton1Click:connect(function() print(api.message(userId, 'Subject', 'Body').message) end)
I want it to send to the person who clicks on the Confirm Button, but it just doesn't seem to work. I already defined my local player, and everything. Please assist me. Thanks!