This script is suppose to show the DevilFruit value on a gui but the devilfruit is a string value, I think that's why it's not working.
while true do script.Parent.Text = "DevilFruit" .. math.floor(script.Parent.Parent.Parent.Parent.Parent.Data.DevilFruit.Value) wait(1) end
You can't use math.floor
with string values. If you are trying to put the value onto the text label, then simply put the value, and not math.floor
. Please try to expand on your question. What are you trying to have it do?
This should help.
math.floor(tonumber(script.Parent.Parent.Parent.Parent.Parent.Data.DevilFruit.Value))
tonumber makes a value into a number, and if it can't be a number, it returns nil. Same with tostring, etc.