Shop Script Semi Working

I’m trying to create a script where a model appears at a certain wave. The problem is that it doesn’t work half the time.

the script is very simple
Coding

I’ve tired to change the script and even cloning the model but still doesn’t work.

Thanks, Shiva

if string.find(TextLabel.Text, [YourText]) then
   print("Theres a string")
end

Tell me if it worked for you. i’m not with a computer right now

Textlabel is being detected as unknown.

would this work?

local textLabel = game.Workspace.Part.SurfaceGui.TextLabel
local shop = game.ReplicatedStorage.Shop2

textLabel.Changed:Connect(function()
	if textLabel.Text == "Wave: 1" then
		shop.Parent = workspace.ShopFolder
	end
end)
1 Like

Couldn’t you keep track of the wave in a variable instead of getting it from a textlabel?

1 Like

yup it worked thanks a lot! I was stumped on this piece of coding for a while now.

1 Like