function onTouched(hit)
	if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil then 
		if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == script.Parent.BrickColor then
			game.Lighting.NOTICE.Parent = game.StarterGui elseif
			 game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil then 
		if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == script.Parent.BrickColor then
			game.StarterGui.NOTICE.Parent = game.Lighting
		end
		end
	end

im trying to make it so that when a player touches the brick the gui from lighting called 'NOTICE' gets moved to starter gui, and then moved back if the certain team member is no longer touching the brick, thanks for the help.

3 comments

0

Did you call the function after wards?

0

Please edit your question to use code blocks (hit the blue orb looking icon in the editing window to create a code block).

0

use the code blocks, your script is really hard to read