local players = game:GetService("Players")
local char = players.LocalPlayer.Character or players.LocalPlayer.CharacterAdded:Wait()
game:GetService("AvatarEditorService"):PromptSetFavorite(game.PlaceId, 1, true)
This is my script, it works perfectly fine but the only issue is that it will still prompt even after the player has favorited.
Is there a way to check if a player has favorited without httpservice? Also do favorites actually do anything to the algorithm or nah?
local players = game:GetService("Players")
local AES = game:GetService("AvatarEditorService")
local char = script.Parent
AES:PromptAllowInventoryReadAccess()
local Favorited = AES:GetFavorite(game.PlaceId, 1)
if not Favorited then
AES:PromptSetFavorite(game.PlaceId, 1, true)
end
For some reason the error still shows, i’m testing this in studio if that changes anything.