Hi! I want to update a string value inside a frame with a button in the same frame, but it doesn't work. Can anyone help me? Script:
script.Parent.MouseButton1Down:Connect(function()
local MapName = script.Parent.Parent.Name
print(MapName)--This works. I can see the name in the output
local selectedMap = script.Parent.Parent.Parent.SelectedMap.Value
selectedMap = MapName--This doesn't
end)

3 comments
I already got the value when I defined selectedMap. Line 5 should update the value that selectedMap is
Weird
Look up the difference between values and references. also, Filtering Enabled