local Fire = script.Parent.MainPart.Fire

function breakdown()
	script.Parent.Broken.Value = false
	wait(2)
	script.Parent.Broken.Value = true
	Fire.Enabled = true
	local explosion = Instance.new('Explosion')
	explosion.Parent = script.Parent.MainPart
	explosion.Position = script.Parent.MainPart.Position
end

script.Parent.ClickDetector.MouseClick:Connect(function(click)
	if click.Team == "Engineering and Technical" then
		print("On E&T Team")
		if script.Parent.Broken.Value == true then
			print("broken")
			click.PlayerGui.FixingFuseBox.Enabled = true
			print("enabled")
		click.PlayerGui.FixingFuseBox.Frame.Frame:TweenSize(UDim2.new(1,0,1,0),"InOut","Sine",15)
		wait(15)
		click.PlayerGui.FixingFuseBox.Frame.Frame.Size = "{0, 0},{1, 0}"
			click.PlayerGui.FixingFuseBox.Enabled = false
			Fire.Enabled = false
			breakdown()
		end
	end
end)

breakdown()

After the fire happens, and it explodes, I click, and nothing happens. None of the prints appear, and I'm on the team.

2 comments

0

I also tried checking the TeamColor, and that didn't work either.

0

try click.Team.Name