This script worked before but all of a sudden, the text won't show up and it wont teleport the player. It does countdown the int value


local function gi()
local int = game:GetService("ReplicatedStorage").int
local ni = game:GetService("ReplicatedStorage").nint
local bo = game:GetService("ReplicatedStorage").gfd

while true do
	wait(1)
if bo.Value == true then
	int.Value = int.Value - 1
	if int.Value == 0 then
		bo.Value = false
end
	else
	int.Value = 0
	end	
end
	
int.Changed:Connect(function()
script.Parent.Text = "Intermission = "..int.Value
end)

if int.Value == 0 then

	script.Parent.Visible = false
	for _, player in pairs(game.Players:GetPlayers()) do
		if player.Character  then
		player.Character:SetPrimaryPartCFrame(CFrame.new(-184, 0.5, 141))	
			
			end
		end
	end
end



game:GetService("ReplicatedStorage").fui.OnClientEvent:Connect(gi)

3 comments

0

Can we see your other script?

0

What are the output errors? You might have changed something.

0

There are no errors in the output