Hello!
I'm scripting a game but the whole thing does'nt work because of a that '(' at line 4. Does someone knows why?
MenuObby.MouseButton1Click:Connect(function()
script.Parent.Loading.Visible = true
Menu.Visisble = false
function(Player)
game.GetService('TeleportService'):Teleport(ObbyId, Player)
end
end)
This is the error message:
Players.alexerooo4.PlayerGui.Screengui.MenuScript:44: Expected identifier when parsing function name, got '('
Pls someone help me! Otherwise i need to stop the project...
Thanks, alexerooo4 - Programmer of the game 'Cube.'

1 comment
Thank you!