Error : 22:21:36.254 - ServerScriptService.Main:65: attempt to call a Instance value I was sitting for a long time trying to get it to work right now i am trying to get MapName from the UI by taking the first table dictionary and find it by going to the UI map that won and take the actual map name in MapName but i ran into a error any help?.
local MapVotes = {}
for i,v in pairs(game.ReplicatedStorage.Assets.Values.MapVotes:GetChildren()) do
MapVotes[v.Name] = {v.Value}
end
table.sort(MapVotes, function(a,b)
return (a.Value > b.Value)
end)
--[[*Error Here *]] game.ReplicatedStorage.Assets.UI.MapWon.Map.MapName.Text = game.ReplicatedStorage.Assets.MapVote(tostring(MapVotes[1])).MapName.Text

3 comments
Do you have a child of MapName named Text?
cuz if you do then it would refer to that
no it's empty