Hello!
I’m trying to make it so text is set to a specific thing after something (code below). Some reason it doesn’t change at all. No errors, etc.
Code:
local RS = game.ReplicatedStorage
local SG = game.StarterGui
local items= {"Grapes", "Apples", "Toilet Paper", "Paper", "Stapler", "Chair", "Laundry Basket", "Bike", "Bandage", "Bananas", "Salad", "Tomatoes", "Light Bulbs", "Batteries", "Bed", "Carpet", "Sheet", "Blanket", "Vaccume", "Broom", "Chemicals", "Toothbrush", "Lotion", "Hair Brush", "Sticker", "Plushie", "Toy Car", "Toy Bricks", "Toy Rocket Launcher", "Sign", "Poster", "Treadmill", "Weights", "Fishing Pole", "Fishing Bait", "Spatula", "Timer", "Towel", "Kitchen Spoon"}
function main()
local GetPrice = math.random(1,175)
local GetItem = items[math.random(1, #items)]
SS.Main.Item.Value = GetItem
SS.Main.Price.Value = GetPrice
print(GetPrice)
print(GetItem)
SG.Main.Frame.Item.TextLabel.Text = GetItem
SG.Main.Frame.Price.TextLabel.Text = GetPrice
end
RS.Main.Start.OnServerEvent:Connect(function()
main()
end)