---current script for teleport pad/wavehole

function setTeam(player, teamName)
	player.TeamColor = game.Teams[teamName].TeamColor
	if player.Character then --Just in case the character doesn't exist for some reason

	end
end

local part = script.Parent
place = CFrame.new(-112.636, 31.515, 64.697) -- Where you want the player to go on touched
script.Parent.Touched:connect(function(p)--Creating the function
	local humanoid = p.Parent:findFirstChild("HumanoidRootPart")--Trying to find the humanoid
	if (humanoid ~= nil) then -- Checking if what touched it IS a player.
		if not part.CanCollide then
			script.Disabled = true
		end	
		humanoid.Torso.CFrame = place -- Moves the torso to what is specified in the place variable
		setTeam(game.Players.KermitTheFrog695, "waveform")
	end
end)--Ending the fuction, if you see on the function line above there is an unclosed parenthesis that I am closing here.