Why does this HAPPEN TO MEEEE

So I have a script. That works perfectly fine. Other then 1 part. Which should! But doesn't. Basically I'm trying to change a value of a Boolean to spawn the creatures in (dont ask) and the value doesn't change. What am I doing wrong?

--Core Variables

local roundlength = 60
local intermission = 15
local replicatedstorage = game:GetService('ReplicatedStorage')
local status = replicatedstorage:FindFirstChild('Status')
local uppertext = replicatedstorage:FindFirstChild('UpperText')


--Blobs Variables
local serverstorage = game:GetService('ServerStorage')
local Blobs = serverstorage:FindFirstChild('Blobs')
local blobson = replicatedstorage:FindFirstChild('BlobsOn')


--Summoning Blobs
blobson.Changed:Connect(function()
	if blobson == true then
		Blobs:Clone().Parent = workspace
	elseif blobson == false then
		if workspace:FindFirstChild('Blobs') then
			workspace.Blobs:Destroy()
		else
			print("Roblox Is Broken! This is Impossible!")
		end
	else
		print("Roblox Is Broken! This is Impossible!")
	end
end)

--Script

local function roundtimer()
	while wait() do
		for i = intermission, 1, -1 do
			wait(1)
			blobson = false
			uppertext.Value = "The Blobs Will Destroy This PITIFUL Planet In"
			status.Value = i 
		end
		for i = roundlength, 1, -1 do
			wait(1)
			blobson = true
			uppertext.Value = "The Blobs Will Evaporate In"
			status.Value = i
		end
	end
end

--Call Function

spawn(roundtimer)

everything except the

blobson = false

and the

blobson = true

parts, work (suprisingly) but the script doesnt work unless i spawn the monsters. what am i doing wrong?

2 comments

1

Um.... You forgot .Value~~

0

I feel so stupid right now. Thanks. I dont know how i forgot it xD