game.ReplicatedStorage.Arrest.OnServerEvent:Connect(function(arrestee)
if arrestee["TeamColor"] == BrickColor.new("Really blue") or arrestee["Settings"].innocent.Value == true then
print("innocent")
else
arrestee.Settings.innocent.Value = true
local arrested = arrestee.Character
local humanoid = arrested["Humanoid"]
local prisoncell = prisoncells[math.random(#prisoncells)]
local cell = prisoncell["cell"]
local cellpos = cell.CFrame
local prisondoor = prisoncell["Door"]
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local DoorOpen = {CFrame = -88.09, 6.402, -2.506 }
local DoorClose = {CFrame = -82.052, 6.402, -2.506 }
local Open = TweenService:Create(prisondoor,tweenInfo,DoorOpen)
local Close = TweenService:Create(prisondoor,tweenInfo,DoorClose)
Close:Play()
wait(10)
Open:Play()
local AnimTrack = humanoid:LoadAnimation(Anim)
AnimTrack:Play()
humanoid["WalkSpeed"] = 0
wait(5)
arrestee["TeamColor"] = BrickColor.new("Deep orange")
humanoid["WalkSpeed"] = 14
arrested["HumanoidRootPart"].CFrame = cellpos
end
end)
This is almost the whole script the error is on lines 16-17

1 comment
what is the actual error code pls :(