This is genuinely tweaking me out
function abilityinsert(plr,charid,name,icon,key)
local plrgui = plr.PlayerGui
local newui = plrgui.AbilitiesGUI.ForUse.Ability:Clone()
newui.Visible = true
newui.Parent = plrgui.AbilitiesGUI.Main.Abilities
newui.Name = name
newui.Keybind.Text = key
newui.PowerIcon.Image = icon
if name == "M1" then
newui.Stack.Text = plr.Character:GetAttribute("M1chain")
end
end
This function gets used each time the localscript wants to make the ability icon for the user.
local charmodule = require(game.ReplicatedStorage.Fundamentals.CharModule)
module.SetupAbility = function(plr,charid)
local chardata = charmodule.Movesets
if plr.PlayerRole.Value == "Scourge" and chardata.Scourge[charid] then
local moveset = chardata.Scourge[charid]
for i, v in ipairs(moveset.Abilities) do
abilityinsert(plr,charid,v.Name,v.Icon,v.Key)
end
end
if plr.PlayerRole.Value == "Executor" and chardata.Executor[charid] then
local moveset = chardata.Executor[charid]
for i, v in ipairs(moveset.Abilities) do
abilityinsert(plr,charid,v.Name,v.Icon,v.Key)
end
end
end
But the image NEVER loads, i'm telling you everything works and is correct except for this image that wont load. How to fix this? IsLoaded never turns true, and yes, the ids are correct:
Abilities = {
{ Name = "M1", Icon = "rbxassetid://6071904536", Key = "M1", cooldown = 1.5},
{ Name = "ScytheSlash", Icon = "rbxassetid://124443904382438", Key = "Q", cooldown = 10},
{ Name = "PLACEHOLDER", Icon = "rbxassetid://124443904382438", Key = "E", cooldown = 10},
},
Any help will be appreciated!! yes and somehow the excalibur image loads, although i use the same id as the placeholder icon (already pre-set in editing)