I'm making a Staff GUI and when I address a certain person(myself) to open the Staff GUI, out comes this:
if player.Name = "TheMightyHisez" then
the error code is on the =. it says Expected 'then' got '='
my whole code:
game.Players.PlayerAdded:Connect(function(player) if player.Name = "TheMightyHisez" then script.Parent.Parent.Parent.Visible = true end end)
--this is when you have to make the text go through the chat, also being invisible to other players aswell. HELP MEH
script.Parent.MouseButton1Down:Connect(function()
bc = BrickColor.new("Dark stone grey")
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = :fly player.Name;
Font = Enum.Font.Cartoon;
Color = bc.Color;
FontSize = Enum.FontSize.Size96;
Visible = false
})
end
end)
end
end
please help me

1 comment
Please format your code