#Making a bottom bar and its now working because of an error
1 messages · Page 1 of 1 (latest)
I think move.AbilityName is nil meaning it doesn't exist
instead of move.AbilityName do tostring(move.AbilityName)
And make sure move.AbilityName actually exists
how do I check?
** You are now Level 2! **
I don't really know since idk how your whole system works but maybe you can try "print(move.AbilityName)" above line 13 and check the output to see what's actually there.
it didn't print anything above the error line?
so, how can I change that?
no sir
is move supposed to be a table
can u show the entire script so I know what "move" is supposed to be
-- local AbilityModule = {}
function AbilityModule:SetupCharacter(player: Player, characterInfoTable)
local PlayerGui = player.PlayerGui
local BottomBar = PlayerGui:WaitForChild("BottomBar")
local Buttons = BottomBar:WaitForChild("Main"):WaitForChild("Buttons")
local Template = Buttons:WaitForChild("Template")
for _, move in pairs(characterInfoTable.moveset) do
print(move)
local clone = Template:Clone()
clone.Name = characterInfoTable.name
clone.AbilityName.Text = move.AbilityName
clone.Keybind.Text = move.Keybind
clone.Parent = Buttons
clone.Visible = true
end
end
return AbilityModule
there
:GetChildren() so jt returns a table?
huh?
You are trying to iterate over an instance in your for _, move in characterInfoTable.moveset
Add getchildren after the moveset
Great ai coded it?
Who even used pairs and ipairs
Zeeval did
Screenshot me your item structure
huh?
Just like what he said
Youre iterating through an instance
so, whats the fix?
Try characterInfoTable.moveset:GetChildren()
Also you are trying to find things inside the moveset right?
yep
Then GetChildren() after moveset would be the correct way
Also what did you expect move to be?
** You are now Level 3! **
Oh moveset is already a table?
yea
Mb
sorry i didnt mention that earler
Did you try this before?
no?
Try it then. Your first pic error is that its expecting a string
Oh wait move doesnt exist doesnt it
Oh actually
Remove the comment ??
why are u commenting the local AbilityModule = {}
ok
so i did as u sid
and it works but dosent at the same time
if that makes sense
yea tostring is converting nil into string so it just becomes "nil"
Blud
it doesn't fix that it doesn't exist
nono then it should be just empty since its still a string
it shouldn't give an error
no?
those are the names
The AbilityName in this is empty
i have move names
it's now working because of an error? aint we all been there 
Where did bro come from
and can u help?
Can u please just try putting something in those empty " " first and see if it works
The picture i am replying to
It prolly won't work but nothing wrong in trying atp😭😭
Name or AbilityName?
alr
idk at this point
false
where is AbilityName i see Name but not AbilityName where is it?
sir, all i gotta say is that im trina make a bottom bar, and it wont work, and even if it DOES, its still an error, and ive got no clue neither does Vince
this is not chatgpt sir
these are just bindings
uk to bing ig?
bind*
or smth of that sort? idrk
so yea can only really help you with code you wrote yourself, not here to help you work a product or decompile a stolen script for that matter (not saying this is but it comes up)
ask the person you bought it from?
you get what you pay for
🤷
its a tutorial on yt
you copied the tutorial wrong then
a guy named Zeeval?
oh, cool thanks
not sure what help you're expecting for copy+pasting someone elses code rong
yea, your right, but i do appreciate the help anyway
thanks Vince
learning to code isn't hard, and spelling matters. you'll get there 👍 https://create.roblox.com/docs/tutorials/fundamentals/coding-1/coding-fundamentals