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 make my game have leaderboards for the top 3 players -
What is the issue? Include screenshots / videos if possible!
the issue is that while the player is in the server the Dummy updates properly and shows the character model rather than the dummy but once the player leaves the dummy shows a blank dummy -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have attempted apply description from user id and a youtube tutorial that has a model that requests the charcter from the roblox site i beliveve (this returns 404 bad request)
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local function updateLeaderboard(plr)
local success, errorMessage = pcall(function()
local Data = MoneyLeaderboard:GetSortedAsync(false, 10)
local MoneyPage = Data:GetCurrentPage()
for Rank, data in ipairs(MoneyPage) do
local userName = game.Players:GetNameFromUserIdAsync(tonumber(data.key))
local Name = userName
local Money = data.value
local isOnLeaderboard = false
for i, v in pairs(game.Workspace.Leaderboard.leaderboardGUI.Holder:GetChildren()) do
if v.Player.Text == Name then
isOnLeaderboard = true
break
end
...
elseif Rank == 2 then
if game.Players:FindFirstChild(Name) == nil then
else
if Players[Name].playerstats.PlayerSettings.HasCrown.Value == false then
wait(3)
local firstname = tostring(Players[Name])
local appearanceModel = game.Players:GetHumanoidDescriptionFromUserId(44959409) -- this is set to a userid for testing it doesnt load the player model
secondplacedummy.Humanoid:ApplyDescription(appearanceModel)
local humanoid = secondplacedummy.Humanoid
local nameTag = script.nameTag:Clone()
nameTag.TextLabel.Text = Name
nameTag.Parent = secondplacedummy.Head
nametagvisible = true
local plr = game:GetService("Players").LocalPlayer
local head = workspace[Name].Head
local crown = rs.Crown2nd:Clone()
crown.Parent = workspace[Name]
local weld = Instance.new("WeldConstraint")
weld.Part0 = head
weld.Part1 = crown
crown.CFrame = head.CFrame*CFrame.new(0,3,0)
weld.Parent = workspace
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.