local url = "No." local http = game:GetService("HttpService") local HookData = { --- This part ['username'] = "DELTA FLIGHT ALERT", ['content'] = ([[|=+=+**DELTA FLIGHT ALERT**+=+=| **FLIGHT INFORMATION:** PLANE: ..script.Parent.Frame.Plane.Text FLIGHT NUMBER: ..script.Parent.Frame.FlightNumber.Tex GATE: ..script.Parent.Frame.Gate.Text AIRPORT: ..script.Parent.Frame.Airport.Text DEPARTURE TIME:]])..script.Parent.Frame.DepTime.Text } HookData = http:JSONEncode(HookData) script.Parent.Frame.Send.MouseButton1Click:connect(function() http:PostAsync(url, HookData) -- And we are done :D end)
As GoldenPhysics said, you need to put the value outside of the string:
local url = "No." local http = game:GetService("HttpService") local HookData = { ['username'] = "DELTA FLIGHT ALERT", ['content'] = ([[|=+=+**DELTA FLIGHT ALERT**+=+=| **FLIGHT INFORMATION:** PLANE: ]]..script.Parent.Frame.Plane.Text..[[ FLIGHT NUMBER: ]]..script.Parent.Frame.FlightNumber.Text..[[ GATE: ]]..script.Parent.Frame.Gate.Text..[[ AIRPORT: ]]..script.Parent.Frame.Airport.Text..[[ DEPARTURE TIME: ]]..script.Parent.Frame.DepTime.Text ) } HookData = http:JSONEncode(HookData) script.Parent.Frame.Send.MouseButton1Click:connect(function() http:PostAsync(url, HookData) -- And we are done :D end)
This should work for you and If it didn't please comment. Otherwise, please accept my answer!