Just to give you a clip of what I mean, here's what I put down.
function OnClick()
records.Visible = true
records.Title = "History for "..player.Name..
end
Whenever I attempt to use that it errors with this: Expected identifier, got 'end' I did described what player was and all that was described but I can't get why it errors.
I did include additional things but only this part since it was the only part of the script that error'ed.

1 comment
I commented that on Coolviper630's answer . Cheers