shlexware / Rayfield

Rayfield Interface Suite
Apache License 2.0
59 stars 124 forks source link

Dropdown menu error #34

Closed THEDESTROYER6667 closed 6 months ago

THEDESTROYER6667 commented 6 months ago

I'm creating a script for sonic speed simulator but when I print the value of the dropdown, it prints as this weird binary table rather than the string. Is this normal? Or am I doing something wrong? Even if I select another option, the table stays the same and doesn't change.

Code:

local WorldSelection = Chaos:CreateDropdown({ Name = "Select a world", Options = {"Green Hill", "Lost Valley", "Emerald Hill", "Hill Top"}, CurrentOption = {"Green Hill"}, MultipleOptions = false, Callback = function(Value) SelectedHatchWorld = Value print(Value) end })

local RaritySelection = Chaos:CreateDropdown({ Name = "Select a rarity", Options = {"Epic", "Legendary", "Exotic"}, CurrentOption = {"Epic"}, MultipleOptions = false, Callback = function(Value) SelectedRarity = Value print(Value) end })

Image:

Screenshot 2024-03-11 at 2 26 22 PM