so im trying to make a boss appear when the wave value reaches a certain number. but nothing happens and my output isnt giving me any error messages. what gives?
if game.ReplicatedStorage.Values.Wave.Value == 2 then game.ReplicatedStorage.BOSS.Zombie:Clone().Parent = game.Workspace end
Okay so I think I have fixed your script.
:GetPropertyChangedSignal is very useful when using values.
every time the value updates for example it increases by one, the event will fire.``
local Wave = game.ReplicatedStorage:WaitForChild("Values").Wave local clone = game.ReplicatedStorage.BOSS.Zombie:Clone() Wave:GetPropertyChangedSignal("Value"):Connect(function() if Wave.Value == 2 then clone.Parent = game.Workspace end end)
developer hub link to
I have not answered to many questions before forgive me for formatting errors please