✓ Accepted answer
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 :GetPropertyChangedSignal
https://developer.roblox.com/en-us/api-reference/function/Instance/GetPropertyChangedSignal
I have not answered to many questions before forgive me for formatting errors please
4 comments
it apears the link doesent work if you google it it should pop up if you need it ^
thank you so much! this worked perfectly.
now, if i wanted to have the object spawn every 6 waves, then how would i go about that? just "If wave.Value == wave.Value /6"?
yeah