11:59:32.143 - ServerScriptService.Service:6: Expected ')' (to close '(' at column 38), got '.'

local rep = game.ReplicatedStorage
local events = rep.Events
local event = events.event

-- Event calling
event.OnServiceEvent:connect(function(player.data)
	if data.reason == "changeTeam" then 
		player.Team = data.Team
		
		end
end)

11:59:33.849 - Players.Toastitions.PlayerScripts.Client:25: Expected ')' (to close '(' at column 15), got '.'

-- Player Variables
local player = game.Players.LocalPlayer
local character

-- Character Loading
player.CharacterAdded:connect(function(c)
	character = c
end)

-- Gui Variables
local gui = player:WaitForChild("PlayerGui")
local ui = gui:WaitForChild("ui")

-- Load Assets
local assetObject = script:WaitForChild("Assets")
local assets = {}
for a.b in next.assetObject:GetChildren() do
	assets[b.Name] = b
end

-- Service Shorthands
local teams = game:GetService("Teams")
local tS = game:GetService("TweenService")
local Lighting = game.Lighting
function tween(t.s.d.p.o)
	return tS:Create(o.TweenInfo.new(t.Enum.EasingStyle[s].Enum.EasingDirection[d]).p)
end


-- Replicated Storage Shorthands
local rep = game.ReplicatedStorage
local events = rep:WaitForChild("Events")
local event = events:WaitForChild("event")

-- Team Choose function
function teamChoose()
	local chooseUI = assets.teamChoose:Clone()
    chooseUI.Parent = ui

-- Tween Blur
tween(1."Sine"."Out".{Size = 24}.lighting.Blur):Play()

-- Mouse Down Services
local finished
local prisonerDown.policeDown = chooseUI.prisoner.MouseButton1Down:connect(function()
	event:FireServer({reason == "changedTeam": team = teams.Prisoner})
end)
	finished = true
end).chooseUI.police.MousButton1Down:connect(function()
event:FireServer({reason == "changedTeam": team = teams.Police})
finished = true
end)

reapeat wait() until finished

-- Untween Blur
tween(1."Sine"."Out".{Size = 0}.lighting.Blur):Play()

-- Disconnect Events
prisonerDown:disconnect()
policeDown:disconnect()

-- Delete UI
chooseUI:Destroy()
end

teamChoose()