script.Parent.MouseButton1Click:Connect(function() if game.Players.LocalPlayer.PlayerGui.Lazarun.TotemGUI.Visible = true then game.Players.LocalPlayer.PlayerGui.Lazarun.TotemGUI.Visible = false else game.Players.LocalPlayer.PlayerGui.Lazarun.TotemGUI.Visible = true end)
The idea here is that pressing the button on the player's GUI will open TotemGUI it if it's closed, and pressing the button while TotemGUI is open will close it. However the code currently returns "Incomplete statement: expected assignment or a function call" (I'm not sure what this means), I've heard that for if statements the = needs to be ==, but that also returns an error.
Which part am I messing up on? (Additionally, how do I put my code in a code block?)
