error: 18:31:15.517 - Workspace.Part.Script:2: unexpected symbol near '?'
code:
script.Parent.ClickDetector.mouseClick:connect(click)? local function click (player) player.PlayerGui.Hosvi.Frame.Visible = true end
any help would be great.
All of these are simple fixes and have been answered by Alphanium but I'll just be here to help clean your code and organize everything.
There's a "?" at the end of your function, keep those out! Also, note that ":connect" is deprecated so I recommend you using ":Connect" instead. Also you can clean up your code a bit by using the "TAB" button and by putting everything together as one.
Here's your cleaner code:
script.Parent.ClickDetector.mouseClick:Connect(function(Player) player.PlayerGui.Hosvi.Frame.Visible = true end)
Again, everything has been solved by Alphanium and am just cleaning and organizing code!
Also, mark this as solved or something. I came here to help and just realized it was solved, lol!
If you have any questions or issues, please contact me. ;)