--This will apply your settings to the player. Don't change what's below.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		if defaultOwnerOverride == false then
			print("Default Owner Override is not active. The Owner Title will automatically be given to the place's owner. Change the setting in the READ ME script if you wish to toggle this.")
			if game.CreatorType == Enum.CreatorType.User then
				playername = game.Players:GetNameFromUserIdAsync(game.CreatorId)
			else
				local groupOwnerName = game:GetService("GroupService"):GetGroupInfoAsync(game.CreatorId).Owner.Name
				playername = groupOwnerName
			end
		else
			print("Default Owner Override is active. The Owner Title will be given to the name specified in the READ ME script inside of the Owner TItle by bendarobloxian model. Change the setting in the READ ME script if you wish to toggle this.")
		end
		if player.Name == playername then
			local newgui = billboard:Clone()
			newgui.Parent = char.Head
			local txtColor
			if dynamicRainbow == true then
				txtColor = Color3.new(1,1,1)
				newgui.TextLabel.dynamicRainbow.Disabled = false
			elseif stillRainbow == true then
				txtColor = Color3.new(1,1,1)
				local newGrad = script.UIGradient:Clone()
				newGrad.Parent = newgui.TextLabel
			else
				txtColor = Color3.fromRGB(redV, greenV, blueV)
			end
			newgui.TextLabel.TextColor3 = txtColor
			newgui.TextLabel.Text = text
		end
	end)
end)