Probier mal oben auf test zu gehen local server und 5 player oder so und dann bei wie vielen es geht
Keinem einzigen.β β β β β β β β β β β β β β β β β β β β
I dont think that the head is the issue here. Also he said he needs to support every head. If the head is the issue he could also just make a fake invisible default head to hold the ui
Γnder deinen character mal zu einem anderen aussehen und guck dann
Good idea.
Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function()
local oh = ServerStorage.Overhead
local overheadClone = oh:Clone()
local regionCode = LocalizationService:GetCountryRegionForPlayerAsync(plr)
local placeholder = Instance.new("Part")
placeholder.canCollide = false
placeholder.Name = "fakeHead"
placeholder.Parent = plr.Character
local weld = Instance.new("Weld")
weld.Parent = placeholder
weld.Part0 = plr.Character.Head
weld.Part1 = placeholder
overheadClone.Parent = placeholder
overheadClone.Frame.Value.Text = "Avatar Value: \u{E002} "..getAvatarValue(plr.UserId)
overheadClone.Frame.Location.Text = "Location: "..countryEmojiTable[regionCode].." "..countryTable[regionCode]
-- it errors above this line
end)
end)
just wrote the extra part in. check for bugs
an even better idea is to put the ui into the HumanoidRootPart and just up its y position so it appears above the head. Doing it this way reduces the ammount of new instances being made and at the end parts having to be loaded
certain player packages could break that. The effect to performance that two instances has is negligible.
Same error happening.β β β β β β β β β β β β β β β β β
Really weird error have you tried reopening roblox studio?
Yes, multiple times.β β β β β β β β β β β β β β β β β β β β β β β β β β β β
Thats really weird ask your friend to try and do the test with 5 players
He did, and it works for him.β β β β β β β β β β β
This bug is really weird. I just loaded in with the same setup and avatar item and it worked for me
Including the βCheekyβ head?β β β β β β β β β β β β β
Yes, and it still functioned without any errors
Thatβs weirdβ¦β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
can you make a screenshot of the cloned overhead inside your character?
Thatβs the thing, it isnβt there, even though itβs parented to the head. Neither does the placeholder part show up.
Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function()
local oh = ServerStorage.Overhead
local overheadClone = oh:Clone()
local regionCode = LocalizationService:GetCountryRegionForPlayerAsync(plr)
overheadClone.Parent = plr.Character.Head
overheadClone.Frame.Value.Text = "Avatar Value: \u{E002} "..getAvatarValue(plr.UserId)
overheadClone.Frame.Location.Text = "Location: "..countryEmojiTable[regionCode].." "..countryTable[regionCode]
overheadClone.Parent = plr.Character.Head
-- it errors above this line
end)
end)
Try setting the parent last
Finally, that works! Thank you!