Hello guys, I'm having an error. Here is my code
--[[Driver Handling]]
--Driver Sit
car.DriveSeat.ChildAdded:connect(function(child)
if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
--Distribute Client Interface
print("Unanchored started")
for i,part in pairs(script.Body.Value:GetChildren()) do
if part:IsA("BasePart") then
part.Anchored = false
end
if part:IsA("Model") then
for i, part2 in pairs(part:GetChildren()) do
if part:IsA("BasePart") then
part.Anchored = false
end
end
end
end
print("Unanchored")
local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
car.DriveSeat:SetNetworkOwner(p)
local player = game.Players:playerFromCharacter(item.Part1.Parent)
if player:GetRankInGroup(6227530) >= 3 then
local g=script.Parent["A-Chassis Interface"]:Clone()
g.Parent=p.PlayerGui
end
end
Having this here, it provides me a Expected 'end' (to close 'function' at line 530), got and adding an a parenthesis at the end, making it "end)" underlines it red. What should I do?

2 comments
I think you forgot an "end)"
I think you also made a mistake on line 23 by using a nonexistent function called "playerFromCharacter" which I believe you meant "GetPlayerFromCharacter".