I really have no idea why. All answers Accepted


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



while true do
int.Changed:Connect(function()
	script.Parent.Text = "Intermission = "..int.Value
end)
wait(1)
if bo.Value == false then
	while true do
	wait(1)
	int.Value = int.Value - 10
	bo.Value = true
	end
if int.Value == 0 then
	ni.Value = 200
	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
	end
end

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

2 comments

0

are there any errors

0

no