AN = game.Workspace.Variables.AullName
HN = game.Workspace.Variables.HullName
function onClicked()
	wait(1)
	AN.Value = "Orlando Otters"
end
game.Workspace.ct1.AWAY.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
	wait(1)
	HN.Value = "Orlando Otters"
end
game.Workspace.ct1.HOME.ClickDetector.MouseClick:connect(onClicked)

AN.Changed:connect(function()
	game.Workspace.Teams.Away.Name = AN.Value
	
end)
HN.Changed:connect(function()
	game.Workspace.Teams.Home.Name = HN.Value
end)

2 comments

0

Please include information of the intended result, the actual result, any errors if applicable, and explanation of what the code does. Thank you.

0

Whats supposed to happen is the team name changes to "Orlando Otters" when click