Webhook working on play solo but not in servers any idea why? I am using a proximity prompt
local Events = game:GetService("ReplicatedStorage"):WaitForChild("Remotes")
local HttpService = game:GetService("HttpService")
>
local ProximityPrompt = script.Parent
local webhook = " "
local function timestamp(t)
local data = os.date("!*t", t)
return string.format("%04d-%02d-%02dT%02d:%02d:%02dZ", data.year, data.month, data.day, data.hour, data.min, data.sec)
end
ProximityPrompt.Triggered:connect(function(Player)
if Player then
local HookData = {
['username'] = "SERVER",
['content'] = "",
embeds = {
{timestamp = timestamp(os.time()),
fields = {
{
name = "**TEST:**",
value = Player.Name .. " - [ "..Player.UserId.." ]"
}
},
}
}
}
HookData = HttpService:JSONEncode(HookData)
HttpService:PostAsync(webhook, HookData)
end
end)