Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Function arguments expected?

Asked by 9 years ago

Can anyone tell me why I get function arguments expected near '.' error in this script?

for _,pl in pairs (game:service'Players':GetPlayers()) do
    for _,s in pairs (workspace.Map.Spawns:GetChildren()) do
        if (s:GetModelCFrame.p-pl.Character.Torso.Position).Magnitude > 60 then
            script.Parent.Parent.Parent.Character:LoadCharacter()
        end
    end
end

Answer this question