You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I am trying to add calling through SocialService into my game -
What is the issue? Include screenshots / videos if possible!
When trying to call someone through the phonebook, I get a popup that says “Oh No! Try again later” -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried some solutions which can be found at the bottom of the post, but nothing worked. I found documentation on the developer hub that had a code snippet with a typo, which is what I’m using right now.
This is the script
local Players = game:GetService("Players")
local SocialService = game:GetService("SocialService")
local player = Players.LocalPlayer
local button = script.Parent
button.Active = false
-- Function to check whether the player can send a call invite
local function CanSendCallingInvite(sendingPlayer)
local success, canSend = pcall(function()
return SocialService:CanSendCallInviteAsync(sendingPlayer)
end)
return success and canSend
end
local canCall = CanSendCallingInvite(player)
if canCall then
button.Active = true
button.Activated:Connect(function()
SocialService:PromptPhoneBook(player, "")
end)
end
When I press the button ingame, this shows up:
I enabled voice chat, cameras, and HTTP requests for my game, and it is in R15, but it still shows this message. I personally only have voice chat enabled, but I can still make calls in Roblox Connect, despite not having a camera